/* Shared authentication theme used by Web and Mobile hosts */
.auth-logo {
    max-height: 96px;
    width: auto;
    object-fit: contain;
}

.auth-hero {
    min-height: 100vh;
    background: #102653;
    color: #f8fafc;
}

.auth-card {
    width: min(562px, calc(100vw - 2rem)) !important;
    max-width: 562px !important;
    margin: 0 auto;
    padding: 3.25rem 2.5rem 3.125rem;
    background: #243765;
    border: 1px solid rgba(178, 199, 235, 0.2);
    border-radius: 22px;
    box-shadow: none;
}

.auth-card-wide {
    width: min(704px, calc(100vw - 2rem)) !important;
    max-width: 704px !important;
}

.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card p,
.auth-card label,
.auth-card span {
    color: #eaf2ff;
}

.e-btn.e-primary {
    background-color: #0b2a60 !important;
    border-color: #0b2a60 !important;
}

.e-btn.e-primary:hover,
.e-btn.e-primary:focus,
.e-btn.e-primary:active {
    background-color: #0D2C4B !important;
    border-color: #0D2C4B !important;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.auth-subtitle {
    color: #d5def2;
    font-size: 1.0625rem;
    font-weight: 600;
}

.auth-input {
    background-color: #e8f0fe !important;
    color: #0f172a !important;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]),
.auth-card select,
.auth-card textarea {
    min-height: 58px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    font-size: 1.125rem;
    font-weight: 600;
}

.auth-card input.auth-input:not([type="checkbox"]):not([type="radio"]) {
    background-color: #e8f0fe !important;
    border-color: transparent !important;
    color: #0f172a !important;
}

.auth-card input::placeholder,
.auth-card textarea::placeholder {
    color: #7887a8 !important;
}

.auth-card input[type="date"] {
    color-scheme: dark;
}

.auth-card select option {
    background: #243765;
    color: #f8fafc;
}

.auth-card label {
    font-size: 1.0625rem;
    font-weight: 700;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 0.5rem;
    gap: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.auth-divider span {
    color: #d3def9;
    font-size: 0.9rem;
}

.auth-social {
    color: #fff !important;
    border-color: rgba(178, 199, 235, 0.22) !important;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.auth-social:hover {
    border-color: #0d2c4b !important;
    background: #0d2c4b !important;
    box-shadow: 0 10px 30px rgba(13, 44, 75, 0.4);
    transform: translateY(-1px);
}

.auth-social img {
    filter: brightness(1.2);
}

.auth-checkbox .e-label {
    color: #eaf2ff !important;
}

.auth-link {
    color: #a9caff;
}

.auth-link:hover {
    color: #cde5ff;
}


@media (max-width: 640px) {
    .auth-hero {
        align-items: center !important;
        justify-content: center !important;
        min-height: 100dvh;
        padding: 1rem !important;
    }

    .auth-logo {
        max-height: 58px;
    }

    .auth-card {
        width: min(100%, 22rem) !important;
        padding: 1.5rem 1.25rem 1.5rem !important;
        border-radius: 16px;
    }

    .auth-card-wide {
        width: min(100%, 22rem) !important;
    }

    .auth-card form {
        gap: 0 !important;
    }

    .auth-card .mb-9 {
        margin-bottom: 1.35rem !important;
    }

    .auth-card .space-y-5 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.85rem !important;
    }

    .auth-card .space-y-2 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0.35rem !important;
    }

    .auth-card input:not([type="checkbox"]):not([type="radio"]),
    .auth-card select,
    .auth-card textarea {
        min-height: 46px;
        border-radius: 12px !important;
        font-size: 0.95rem;
    }

    .auth-card input.auth-input:not([type="checkbox"]):not([type="radio"]) {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        padding-left: 2.75rem !important;
    }

    .auth-card label {
        font-size: 0.95rem;
    }

    .auth-card .bi.text-xl {
        font-size: 1.05rem !important;
    }

    .auth-card .pl-4 {
        padding-left: 0.9rem !important;
    }

    .auth-card .text-base {
        font-size: 0.9rem !important;
        line-height: 1.35rem !important;
    }

    .auth-card input[type="checkbox"] {
        width: 1rem !important;
        height: 1rem !important;
    }

    .auth-card button[type="submit"] {
        min-height: 48px !important;
        margin-top: 1rem !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
    }

    .auth-card .mt-10 {
        margin-top: 1.35rem !important;
    }

    .auth-card .mt-9 {
        margin-top: 1.35rem !important;
    }

    .auth-card .mt-6 {
        margin-top: 1rem !important;
    }

    .auth-card p.text-xl {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }

    .auth-card .text-lg {
        font-size: 0.95rem !important;
    }

    .auth-card .auth-social {
        min-height: 44px !important;
        gap: 0.5rem !important;
        padding: 0.65rem 0.75rem !important;
    }

    .auth-card .auth-social img {
        width: 1.15rem !important;
        height: 1.15rem !important;
    }
}
