/* ==========================================================================
   Foto First / Audiolens - Identity (login, register, reset password, etc.)
   Branded auth experience, aligned with the main app's navy + green theme.
   ========================================================================== */

:root {
    --bg: #0b1330;
    --panel: #0e1638;
    --panel-2: #0a1129;
    --accent: #16a34a;
    --accent-2: #22c55e;
    --line: rgba(255,255,255,.08);
    --text: #e9ebf5;
    --muted: #a9b1c7;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(900px 480px at 18% 8%, rgba(22,163,74,.16), transparent 55%),
                radial-gradient(700px 420px at 85% 92%, rgba(34,197,94,.10), transparent 55%),
                linear-gradient(180deg, #0e1638 0%, #080d20 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Shell / card ---------- */

.auth-shell {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    color: #171b2e;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -12px rgba(2, 6, 23, .55), 0 2px 8px rgba(2,6,23,.2);
    padding: 2.75rem 2.25rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, .06);
    overflow: hidden;
}

    .auth-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--accent), var(--accent-2));
    }

.auth-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-logo {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 .35rem;
    color: #0e1330;
}

.auth-subtitle {
    font-size: .95rem;
    color: #6b7280;
    margin: 0;
}

/* ---------- Form fields ---------- */

.auth-field {
    position: relative;
    margin-bottom: 1rem;
}

.auth-field .field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #a3aabd;
    font-size: .9rem;
    pointer-events: none;
}

.auth-field .toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #a3aabd;
    cursor: pointer;
    font-size: .9rem;
}

    .auth-field .toggle-password:hover {
        color: #6b7280;
    }

.auth-card .form-control,
.auth-card .form-select {
    height: 48px;
    padding-left: 2.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid #e3e6f0;
    background-color: #f8f9fc;
    font-size: .95rem;
    color: #171b2e;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .auth-card .form-control::placeholder {
        color: #9aa1b5;
    }

    .auth-card .form-control:focus,
    .auth-card .form-select:focus {
        background-color: #ffffff;
        border-color: var(--accent);
        box-shadow: 0 0 0 .2rem rgba(22, 163, 74, .16);
    }

.auth-card select.form-select {
    padding-right: 2.5rem;
}

.auth-card .form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .25rem 0 1.25rem;
}

.auth-card .form-check-input {
    margin: 0;
    width: 1.05rem;
    height: 1.05rem;
}

    .auth-card .form-check-input:checked {
        background-color: var(--accent);
        border-color: var(--accent);
    }

.auth-card .form-check-label {
    font-size: .9rem;
    color: #4b5266;
}

.auth-summary:empty {
    display: none;
}

.auth-summary {
    margin-bottom: 1rem;
}

.auth-card .text-danger {
    font-size: .8rem;
    display: block;
    margin: -.6rem 0 .85rem 2px;
}

.auth-card ul.text-danger,
.auth-card .validation-summary-errors ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
}

/* ---------- Buttons ---------- */

.auth-card .btn-auth-primary {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .2px;
    box-shadow: 0 10px 22px rgba(22, 163, 74, .28);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

    .auth-card .btn-auth-primary:hover,
    .auth-card .btn-auth-primary:focus {
        color: #ffffff;
        background: #128a3e;
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(22, 163, 74, .34);
    }

    .auth-card .btn-auth-primary:active {
        transform: translateY(0);
    }

/* ---------- Links ---------- */

.auth-links {
    margin-top: 1.25rem;
    font-size: .9rem;
}

.auth-links--center {
    text-align: center;
}

.auth-card a {
    color: #0f7d39;
    text-decoration: none;
    font-weight: 600;
}

    .auth-card a:hover {
        text-decoration: underline;
    }

/* ---------- Status / info callouts ---------- */

.auth-card .text-info,
.auth-card .alert-info {
    background: #eaf1ff;
    border: 1px solid #d7e6ff;
    color: #1d4ed8;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

.auth-card [class*="StatusMessage"],
.auth-card .alert-success {
    background: #eafbf1;
    border: 1px solid #bdedd2;
    color: #157347;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

/* Generic headings that may still be rendered by low-value/system pages
   (e.g. Manage/SetPassword) that don't use the .auth-header markup */
.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card h4 {
    color: #131629;
    font-weight: 700;
}

.auth-card hr {
    border-top: 1px solid #eef0f6;
    margin: 1.25rem 0;
}

/* Bootstrap grid columns don't make sense inside a narrow centered card -
   force them to stack full-width instead of shrinking to a fraction of it. */
.auth-card .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ---------- Footer note ---------- */

.auth-footnote {
    text-align: center;
    margin-top: 1.75rem;
    font-size: .8rem;
    color: rgba(233, 235, 245, .55);
}

    .auth-footnote a {
        color: rgba(233, 235, 245, .8);
        text-decoration: underline;
    }

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
    .auth-card {
        padding: 2.25rem 1.5rem 2rem;
    }

    .auth-title {
        font-size: 1.35rem;
    }
}
