/* ============================================================
   css/auth.css - The login, register and forgot-password pages.

   Loaded AFTER css/style.css, so form controls, buttons and fonts
   are the app's own rules rather than a lookalike. This file only
   handles the centred card layout that the app itself has no need
   for. Brand colours arrive separately from Admin > Branding.
   ============================================================ */

body.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f4f6fb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* A very soft wash of the brand colour, so a rebranded install
   feels different without the page turning into a gradient. */
body.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 142, 247, 0.10), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(79, 142, 247, 0.07), transparent 46%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e9ecf2;
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(26, 26, 46, 0.08);
    padding: 36px 34px 30px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}
.auth-brand .brand-icon {
    font-size: 22px;
    color: #4f8ef7;
}
.auth-brand .brand-name {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.2px;
}
.auth-brand img { max-height: 38px; max-width: 190px; }

.auth-card h1 {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
    text-align: center;
}
.auth-card .auth-sub {
    font-size: 13px;
    color: #8a90a2;
    text-align: center;
    margin-bottom: 26px;
}

.auth-card .form-label {
    font-size: 12px;
    font-weight: 500;
    color: #5a6274;
    margin-bottom: 5px;
}
.auth-card .form-control { margin-bottom: 16px; }
.auth-card .btn-primary  { width: 100%; padding: 11px; font-weight: 500; }

/* Show/hide password */
.auth-pw { position: relative; }
.auth-pw .auth-pw-toggle {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    color: #9aa1b1;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.auth-pw .auth-pw-toggle:hover { color: #4f8ef7; }

/* Password strength */
.auth-strength { margin: -8px 0 16px; }
.auth-strength-bar {
    height: 4px;
    border-radius: 3px;
    background: #eceff5;
    overflow: hidden;
}
.auth-strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.25s ease, background 0.25s ease;
}
.auth-strength-text { font-size: 11px; color: #9aa1b1; margin-top: 5px; display: block; }

.auth-divider {
    text-align: center;
    margin: 22px 0 16px;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: #eceff5;
}
.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 14px;
    font-size: 12px;
    color: #9aa1b1;
}

.auth-links { text-align: center; font-size: 13px; color: #6b7285; }
.auth-links a { color: #4f8ef7; text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }
.auth-links + .auth-links { margin-top: 8px; }

.auth-note {
    font-size: 12.5px;
    line-height: 1.6;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.auth-note.info    { background: #eef3fd; color: #2f6ad9; }
.auth-note.success { background: #e8f7ee; color: #1e7a45; }
.auth-note.error   { background: #fdeceb; color: #c5372c; }

.auth-terms {
    font-size: 12px;
    color: #6b7285;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
}
.auth-terms input { margin-top: 2px; }

.auth-foot {
    text-align: center;
    font-size: 11px;
    color: #a6acbb;
    margin-top: 22px;
}

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