/* ---------- Auth shell: two-panel layout ---------- */
.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f7fe;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- Left hero panel ---------- */
.auth-hero {
    position: relative;
    display: none;
    flex: 1 1 46%;
    background: linear-gradient(135deg, #1a56db 0%, #0b3d91 100%);
    color: #fff;
    padding: 4rem 3.5rem;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-hero {
        display: flex;
    }
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
    animation: authFadeSlideUp .6s ease both;
}

/* Only the fallback icon+text mark is forced white (via its own rule below)
   — a real uploaded logo keeps its own colors, just lifted on a soft white
   card so it stays legible on the blue gradient. */
img.auth-hero-logo.account-logo {
    max-height: 44px;
    background: #fff;
    border-radius: .5rem;
    padding: .4rem .6rem;
}

.auth-hero-logo .account-logo-text {
    color: #fff;
    font-size: 1.5rem;
}

.auth-hero-title {
    font-weight: 700;
    font-size: 2.1rem;
    margin-bottom: .75rem;
}

.auth-hero-tagline {
    color: rgba(255, 255, 255, .85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.auth-hero-points {
    margin: 0;
    padding: 0;
}

.auth-hero-points li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, .92);
    margin-bottom: .85rem;
    font-size: .95rem;
}

.auth-hero-points li i {
    color: #8fd3ff;
}

/* Subtle CSS "chat bubble" pattern in the background */
.auth-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .18;
    pointer-events: none;
}

.auth-hero-pattern .bubble {
    position: absolute;
    font-size: 5rem;
    color: #fff;
}

.auth-hero-pattern .bubble-1 { top: 8%; left: 65%; font-size: 6rem; transform: rotate(-8deg); }
.auth-hero-pattern .bubble-2 { bottom: 15%; left: 8%; font-size: 4.5rem; transform: rotate(10deg); }
.auth-hero-pattern .bubble-3 { top: 45%; left: 78%; font-size: 3.5rem; transform: rotate(-15deg); }
.auth-hero-pattern .bubble-4 { bottom: 5%; right: 30%; font-size: 4rem; transform: rotate(6deg); }

/* ---------- Right panel: the auth card ---------- */
.auth-panel {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    background: #f4f7fe;
}

.auth-panel-inner {
    width: 100%;
    max-width: 440px;
}

.auth-card-wrap {
    animation: authFadeSlideUp .5s ease both;
    animation-delay: .05s;
}

.auth-mobile-logo.account-logo {
    max-height: 40px;
}

.auth-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(11, 61, 145, .12);
}

.auth-title {
    font-weight: 700;
    color: var(--brand-navy, #0b3d91);
    font-size: 1.5rem;
    margin-bottom: .25rem;
}

.auth-subtitle {
    color: #6b7896;
    font-size: .92rem;
    margin-bottom: 1.75rem;
}

.auth-footer {
    color: #9aa7c2;
    font-size: .8rem;
    margin-top: 1.5rem;
}

@keyframes authFadeSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero-content, .auth-card-wrap {
        animation: none;
    }
}

/* ---------- Form styling ---------- */
.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    font-weight: 600;
    font-size: .875rem;
    color: #33415c;
    margin-bottom: .35rem;
}

.auth-input-group {
    position: relative;
}

.auth-input-group .input-group-text {
    background: #fff;
    border-right: none;
    color: #7b88a8;
}

.auth-input-group .form-control {
    border-left: none;
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: #1a56db;
}

.auth-input-group:focus-within .input-group-text {
    border-color: #1a56db;
    color: #1a56db;
}

.auth-input-group .btn-toggle-password {
    background: #fff;
    border-color: #ced4da;
    color: #7b88a8;
}

.auth-input-group.is-invalid .form-control,
.auth-input-group.is-invalid .input-group-text,
.auth-input-group.is-invalid .btn-toggle-password {
    border-color: #dc3545;
}

.auth-error {
    color: #dc3545;
    font-size: .825rem;
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.auth-remember {
    font-size: .9rem;
    color: #445069;
}

.auth-links {
    font-size: .9rem;
}

/* ---------- Primary CTA button ---------- */
.btn-auth {
    background: linear-gradient(135deg, #1a56db, #0b3d91);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .7rem 1rem;
    border-radius: .6rem;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 6px 16px rgba(26, 86, 219, .3);
}

.btn-auth:hover,
.btn-auth:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 61, 145, .35);
}

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

/* ---------- CAPTCHA ---------- */
.captcha-field .captcha-challenge {
    background: #f4f7fe;
    border: 1px dashed #c7d3f5;
    border-radius: .6rem;
    padding: .6rem .85rem;
}

.captcha-question {
    font-weight: 700;
    color: var(--brand-navy, #0b3d91);
    font-size: 1.05rem;
}

.captcha-image {
    border-radius: .4rem;
    border: 1px solid #e5e9f2;
    display: block;
}

.captcha-refresh {
    color: #1a56db;
    font-size: 1.2rem;
    line-height: 1;
    text-decoration: none;
}

.captcha-refresh:hover {
    color: #0b3d91;
    transform: rotate(90deg);
    display: inline-block;
    transition: transform .3s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .auth-panel {
        padding: 3rem 1.25rem;
    }
}
