240 lines
7.2 KiB
HTML
240 lines
7.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pharmacy Staff Login</title>
|
|
<style>
|
|
:root {
|
|
--primary: #0284c7;
|
|
--primary-hover: #0369a1;
|
|
--primary-light: #f0f9ff;
|
|
--primary-border: #bae6fd;
|
|
--background: #f8fafc;
|
|
--surface: #ffffff;
|
|
--border: #e2e8f0;
|
|
--border-hover: #cbd5e1;
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #475569;
|
|
--text-muted: #94a3b8;
|
|
--danger: #dc2626;
|
|
--danger-bg: #fef2f2;
|
|
--danger-border: #fecaca;
|
|
--radius-sm: 4px;
|
|
--radius: 6px;
|
|
--radius-lg: 8px;
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
background-color: var(--background);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 24px 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
.login-card {
|
|
background-color: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow);
|
|
width: 100%;
|
|
max-width: 440px;
|
|
padding: 36px 32px;
|
|
}
|
|
|
|
.header-section {
|
|
text-align: center;
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
.logo-slot {
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.logo-slot img {
|
|
max-height: 58px;
|
|
width: auto;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.portal-badge {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.6px;
|
|
text-transform: uppercase;
|
|
padding: 4px 10px;
|
|
background-color: var(--primary-light);
|
|
color: var(--primary);
|
|
border: 1px solid var(--primary-border);
|
|
border-radius: 9999px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.portal-title {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
letter-spacing: -0.2px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.portal-subtitle {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
color: var(--text-primary);
|
|
background-color: #ffffff;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
outline: none;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.form-input:focus {
|
|
border-color: var(--primary);
|
|
box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
|
|
}
|
|
|
|
.btn-submit {
|
|
width: 100%;
|
|
padding: 11px 16px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
color: #ffffff;
|
|
background-color: var(--primary);
|
|
border: 1px solid var(--primary);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: background-color 0.15s ease;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.btn-submit:hover {
|
|
background-color: var(--primary-hover);
|
|
border-color: var(--primary-hover);
|
|
}
|
|
|
|
.btn-submit:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: var(--danger-bg);
|
|
border: 1px solid var(--danger-border);
|
|
color: var(--danger);
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius);
|
|
font-size: 13px;
|
|
margin-bottom: 20px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.footer-note {
|
|
margin-top: 24px;
|
|
padding-top: 18px;
|
|
border-top: 1px solid var(--border);
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.footer-note strong {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.back-link {
|
|
display: block;
|
|
margin-top: 10px;
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.back-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="login-card">
|
|
<div class="header-section">
|
|
<div class="logo-slot">
|
|
<img src="/static/logo.png" alt="Hospital Logo" onerror="this.src='/static/logos/logo.png';">
|
|
</div>
|
|
<span class="portal-badge">Pharmacy Department</span>
|
|
<h1 class="portal-title">Item-Code Approval Portal</h1>
|
|
<p class="portal-subtitle">Dedicated authentication for pharmacy personnel to review and verify invoice drug item codes.</p>
|
|
</div>
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="alert-error">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
<form action="/pharmacy/login" method="POST">
|
|
<div class="form-group">
|
|
<label for="username" class="form-label">Staff Username</label>
|
|
<input type="text" id="username" name="username" class="form-input" placeholder="e.g. pharmacy" required autocomplete="username" autofocus>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password" class="form-label">Password</label>
|
|
<input type="password" id="password" name="password" class="form-input" placeholder="••••••••" required autocomplete="current-password">
|
|
</div>
|
|
|
|
<button type="submit" class="btn-submit">Sign In to Pharmacy Portal</button>
|
|
</form>
|
|
|
|
<div class="footer-note">
|
|
<strong>Restricted Access</strong><br>
|
|
This portal is restricted to authorized pharmacy staff with approval privileges. Invoice extraction and billing users must use the standard portal.
|
|
<a href="/login" class="back-link">Go to Standard Billing Login</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|