.auth-page {
    --auth-teal: #0d9488;
    --auth-teal-dark: #0f766e;
    --auth-navy: #0f1f38;
    --auth-navy-deep: #09111e;
    --auth-text: #1e293b;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-input-bg: #f8fafc;
    min-height: 100vh;
    display: flex;
    font-family: 'Nunito Sans', sans-serif;
}

.auth-page__brand {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(145deg, var(--auth-navy) 0%, var(--auth-navy-deep) 55%, #0c4a3e 100%);
    position: relative;
    overflow: hidden;
}

.auth-page__brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(13, 148, 136, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 40%);
    pointer-events: none;
}

.auth-page__brand-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 380px;
}

.auth-page__logo {
    display: block;
    width: auto;
    max-width: min(320px, 90vw);
    height: auto;
    max-height: 88px;
    margin: 0 auto 1.75rem;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.auth-page__brand-title {
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
}

.auth-page__brand-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.auth-page__form-wrap {
    flex: 1 1 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #f1f5f9;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 40px -12px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.auth-card__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--auth-teal);
    margin-bottom: 0.5rem;
}

.auth-card__title {
    color: var(--auth-text);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.auth-card__lead {
    color: var(--auth-muted);
    font-size: 0.95rem;
    margin: 0 0 1.75rem;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 0.4rem;
}

.auth-field .form-control {
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--auth-border);
    background: var(--auth-input-bg);
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    font-size: 0.95rem;
    color: var(--auth-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field .form-control:focus {
    border-color: var(--auth-teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.auth-field .form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.auth-field__icon-wrap {
    position: relative;
}

.auth-field__icon-wrap > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-teal);
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

.auth-card__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 1.5rem;
    flex-wrap: wrap;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--auth-muted);
    user-select: none;
}

.auth-remember input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-teal);
    cursor: pointer;
}

.auth-forgot {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--auth-teal-dark);
    text-decoration: none;
}

.auth-forgot:hover {
    color: var(--auth-teal);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--auth-teal) 0%, var(--auth-teal-dark) 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.55);
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(13, 148, 136, 0.6);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-card .invalid-feedback {
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.auth-alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.auth-alert--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--auth-muted);
    text-decoration: none;
}

.auth-back:hover {
    color: var(--auth-teal-dark);
    text-decoration: none;
}

.auth-card__footer {
    margin-top: 1rem;
    text-align: center;
}

.auth-page__mobile-logo {
    display: none;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-page__mobile-logo img {
    max-height: 52px;
    width: auto;
    max-width: 240px;
}

@media (max-width: 991.98px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-page__brand {
        display: none;
    }

    .auth-page__form-wrap {
        flex: 1;
        min-height: 100vh;
        background: linear-gradient(180deg, var(--auth-navy) 0%, var(--auth-navy-deep) 38%, #f1f5f9 38%);
        padding-top: 2rem;
    }

    .auth-page__mobile-logo {
        display: block;
    }

    .auth-page__mobile-logo img {
        filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
    }
}

@media (max-width: 479.98px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .auth-card__title {
        font-size: 1.45rem;
    }
}
