/* =====================================================================
   Shared styles for auth pages (login, forgot password, reset password).
   Uses the same white header + navy footer as the frontend home page.
   ===================================================================== */
:root {
    --primary: #0063d2;
    --primary-hover: #0150ab;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --page-bg: #f4f6fa;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--page-bg);
    color: var(--text-dark);
}

/* ---------- Header (same as home) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo-img { height: 42px; width: auto; display: block; }
.header-login {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}
.header-login:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }

/* ---------- Main (centres the card) ---------- */
.auth-main {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

/* ---------- Card ---------- */
.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.1);
    padding: 36px 32px 30px;
    animation: pop 0.3s ease;
}
@keyframes pop {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand img { height: 54px; width: auto; margin-bottom: 12px; }
.auth-title { font-size: 1.45rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.auth-subtitle { font-size: 0.9rem; color: var(--text-muted); margin: 6px 0 0; }

/* ---------- Fields ---------- */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .material-symbols-rounded {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: #9aa4b6;
    pointer-events: none;
}
.input-wrap .form-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 0 14px 0 44px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-wrap .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 99, 210, 0.12);
    outline: none;
}
.toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9aa4b6;
    cursor: pointer;
    display: flex;
    padding: 4px;
}
.toggle-pass:hover { color: var(--primary); }
.toggle-pass .material-symbols-rounded { position: static; left: auto; }

/* ---------- Remember / forgot row ---------- */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 8px;
}
.form-check-label { font-size: 0.86rem; color: var(--text-muted); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.forgot-link { font-size: 0.86rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* ---------- Submit button ---------- */
.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 99, 210, 0.28);
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.btn-login:hover { background: var(--primary-hover); transform: translateY(-1px); }

.auth-foot { text-align: center; margin-top: 22px; font-size: 0.86rem; color: var(--text-muted); }
.auth-foot a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.invalid-feedback { font-size: 0.8rem; }
.alert { border-radius: 11px; font-size: 0.88rem; }

/* ---------- Footer (same as home) ---------- */
.site-footer { flex-shrink: 0; width: 100%; background: #0f1b2d; color: #cdd6e4; }
.footer-top {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-img { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; display: block; }
.footer-brand p { margin: 4px 0 0; font-size: 0.85rem; color: #9fb0c7; max-width: 300px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer-links a { color: #cdd6e4; text-decoration: none; font-size: 0.9rem; transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #8fa0b8;
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 22px 24px; border-radius: 14px; }
}
