body {
    background-color: #ffffff;
    font-family: Arial, Tahoma, Verdana, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* ── Page structure ──────────────────────────────── */

.login-page-wrap {
    width: 980px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header — same spec as .site-header in topnav.css */
.login-header {
    width: 100%;
    height: 100px;
    background: #ffffff url('/Images/header_background.png') no-repeat left center;
    background-size: auto 100%;
    border-bottom: 3px solid #0cada2;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Body — white, card centred */
.login-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.login-banner {
    width: 100%;
    max-width: 560px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Body — full-width content pages (About, ChangeLog etc.) */
.login-content {
    flex: 1;
    padding: 32px 0 40px;
}

/* Fixed footer — always visible at bottom of viewport (ChangeLog) */
.login-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 980px;
    background: #fff;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 0.8rem;
    z-index: 100;
}

.login-footer-fixed a       { color: #6c757d; text-decoration: none; }
.login-footer-fixed a:hover { color: #0cada2; text-decoration: underline; }

/* Wide card variant (register page) */
.auth-card-wide { max-width: 500px; }

/* Footer */
.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #dee2e6;
    font-size: 0.8rem;
}

.login-footer a {
    color: #6c757d;
    text-decoration: none;
}

.login-footer a:hover {
    color: #0cada2;
    text-decoration: underline;
}

.login-footer-sep {
    color: #ced4da;
}

/* ── Auth card ───────────────────────────────────── */

.auth-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 3px solid #0cada2;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.auth-card-body {
    padding: 28px 32px 24px;
}

.auth-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c757d;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 20px;
}

/* ── Form elements ───────────────────────────────── */

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    display: block;
}

.form-control {
    font-size: 0.9rem;
    border-radius: 3px;
    border: 1px solid #ced4da;
    padding: 7px 11px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    font-family: inherit;
    color: #212529;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    border-color: #0cada2;
    box-shadow: 0 0 0 0.18rem rgba(12, 173, 162, 0.18);
    outline: none;
}

.password-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    font-size: 0.85rem;
}

.password-toggle:hover { color: #555; }

/* ── Buttons ─────────────────────────────────────── */

.auth-btn {
    width: 100%;
    background: #0cada2;
    border: none;
    color: #fff;
    padding: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    margin-top: 6px;
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn:hover:not(:disabled) {
    background: #0b9e95;
    color: #fff;
    text-decoration: none;
}

.auth-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.auth-btn-secondary {
    width: 100%;
    background: transparent;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.auth-btn-secondary:hover {
    border-color: #0cada2;
    color: #0cada2;
    text-decoration: none;
}

/* ── Misc ────────────────────────────────────────── */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    color: #aaa;
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.auth-footer-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    font-size: 0.8rem;
}

.auth-footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: #0cada2;
    text-decoration: underline;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #495057;
    margin: 10px 0 16px;
}

.auth-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0cada2;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-remember label {
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

#errorPanel,
#successPanel {
    margin-bottom: 16px;
    font-size: 0.85rem;
}

#errorPanel { display: none; }

/* ── Register page (reuses auth-card, auth-card-body) ── */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #f0f2f5;
}

.auth-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0cada2;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 6px;
    margin-bottom: 14px;
    margin-top: 18px;
}

.auth-section-label:first-child { margin-top: 0; }

.field-error {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 3px;
    display: none;
}

.mb-3 { margin-bottom: 14px; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -6px;
    margin-right: -6px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 6px;
    padding-right: 6px;
    box-sizing: border-box;
}

.text-muted { color: #6c757d; }

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 980px) {
    .login-page-wrap {
        width: 100%;
    }

    .login-footer-fixed {
        width: 100%;
        left: 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .login-header {
        height: 70px;
    }

    .auth-card-body {
        padding: 20px 18px 18px;
    }

    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
