277 lines
7.7 KiB
HTML
277 lines
7.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Login to AIInfinite</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
|
<style>
|
|
:root {
|
|
--white: #ffffff;
|
|
--text-dark: #1a1a1a;
|
|
--primary-color: #003087;
|
|
--secondary-color: #666666;
|
|
--background-light: #f0f2f5;
|
|
--error-color: #d32f2f;
|
|
--success-color: #155724;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
color: var(--text-dark);
|
|
background: var(--background-light);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.auth-form {
|
|
background: var(--white);
|
|
padding: 4rem;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin: 2rem;
|
|
animation: slideIn 0.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.form-title {
|
|
font-size: 2.2rem;
|
|
font-weight: 600;
|
|
margin-bottom: 0.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.form-subtitle {
|
|
color: var(--secondary-color);
|
|
margin-bottom: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.auth-form-group {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.auth-form-group label {
|
|
display: block;
|
|
margin-bottom: 0.5rem;
|
|
font-weight: 600;
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
.auth-form-group input {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
border: 2px solid var(--background-light);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.auth-form-group input:focus {
|
|
border-color: var(--primary-color);
|
|
outline: none;
|
|
box-shadow: 0 0 8px rgba(0, 48, 135, 0.2);
|
|
}
|
|
|
|
.auth-form-checkbox {
|
|
margin-bottom: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 0.95rem;
|
|
color: var(--secondary-color);
|
|
}
|
|
|
|
.auth-form-checkbox input {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
background: var(--primary-color);
|
|
color: var(--white);
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #002366;
|
|
}
|
|
|
|
.switch-auth {
|
|
text-align: center;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.btn-link {
|
|
color: var(--primary-color);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.security-note {
|
|
color: var(--secondary-color);
|
|
font-size: 0.9rem;
|
|
margin-top: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.flash-messages {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.flash-message {
|
|
padding: 1rem;
|
|
margin: 1rem 0;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
|
|
.flash-message.success {
|
|
background-color: #d4edda;
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.flash-message.error {
|
|
background-color: #f8d7da;
|
|
color: var(--error-color);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.auth-form {
|
|
padding: 2rem;
|
|
margin: 1rem;
|
|
}
|
|
|
|
.form-title {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
/* ===== FORCE DMH BUTTON TOP RIGHT ===== */
|
|
.btn-dmh-global {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
/* 🔴 RIGHT SIDE */
|
|
|
|
padding: 10px 24px;
|
|
background-color: #003087 !important;
|
|
color: #ffffff !important;
|
|
|
|
border-radius: 6px;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
|
|
text-decoration: none !important;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.btn-dmh-global:hover {
|
|
background-color: #002366 !important;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<a href="{{ url_for('login') }}" class="btn-dmh-global"
|
|
style="position:fixed;top:20px;right:20px;background:blue;color:white;padding:10px;">
|
|
DMH
|
|
</a>
|
|
|
|
|
|
|
|
<div class="auth-form">
|
|
<!-- <a href="{{ url_for('login') }}" class="btn-primary">
|
|
DMH
|
|
</a> -->
|
|
|
|
|
|
<h1 class="form-title">Login to AI Infinite</h1>
|
|
<p class="form-subtitle">Securely access your account</p>
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<ul class="flash-messages">
|
|
{% for category, message in messages %}
|
|
<li class="flash-message {{ category }}">{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<form action="{{ url_for('login') }}" method="POST">
|
|
<div class="auth-form-group">
|
|
<label for="username">Username/Email</label>
|
|
<input type="text" id="username" name="username" required>
|
|
</div>
|
|
|
|
<div class="auth-form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" required>
|
|
</div>
|
|
|
|
<!-- 👇 Remember Me Checkbox -->
|
|
<div class="auth-form-checkbox">
|
|
<input type="checkbox" id="remember" name="remember" value="yes">
|
|
<label for="remember">Remember Me</label>
|
|
</div>
|
|
|
|
<!-- <button type="submit" class="btn-primary">Sign In</button> -->
|
|
<div class="login-actions">
|
|
<button type="submit" class="btn-primary">
|
|
Sign In
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="switch-auth">
|
|
<p>Don't have an account? <a href="{{ url_for('signup') }}" class="btn-link">Create Account</a></p>
|
|
<p><a href="{{ url_for('forgot_password') }}" class="btn-link">Forgot Password?</a></p>
|
|
<div style="margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5e7eb;">
|
|
<p style="margin-bottom: 4px; font-size: 0.9rem; color: #4b5563;">Hospital Pharmacy Staff?</p>
|
|
<a href="{{ url_for('pharmacy_login') }}" style="color: #0284c7; font-weight: 600; text-decoration: none; font-size: 0.95rem;">
|
|
Sign In via Dedicated Pharmacy Portal →
|
|
</a>
|
|
</div>
|
|
<p class="security-note" style="margin-top: 14px;"><i class="fas fa-lock"></i> Secured with SSL Encryption</p>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html> |