.auth-body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    background: #f8fafc;
    overflow-x: hidden;
}
.auth-flash {
    position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
    z-index: 9999; padding: 0.75rem 1.25rem; border-radius: 999px;
    font-size: 0.9rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-width: 90vw; text-align: center;
}
.auth-flash-success { background: #dcfce7; color: #166534; }
.auth-flash-error { background: #fee2e2; color: #991b1b; }

/* Split auth layout */
.auth-shell {
    display: flex;
    min-height: 100vh;
}
.auth-shell-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #0c4a6e 0%, #0f766e 40%, #0d9488 70%, #1d4ed8 100%);
    color: #fff;
    padding: 2rem;
    position: relative;
}
.auth-shell-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(251,191,36,0.12), transparent 40%);
    pointer-events: none;
}
.auth-shell-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 2rem;
}
.auth-shell-brand .brand-logo { color: #fff; }
.auth-shell-brand .brand-logo-text strong { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.auth-shell-brand .brand-logo-text small { color: rgba(255,255,255,0.75); }
.auth-shell-headline { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.auth-shell-desc { opacity: 0.9; line-height: 1.6; }
.auth-shell-features { list-style: none; padding: 0; margin: 1.5rem 0; }
.auth-shell-features li { padding: 0.4rem 0; opacity: 0.95; }
.auth-shell-features .bi-check-circle-fill { color: #fbbf24; margin-right: 0.5rem; }
.auth-powered { font-size: 0.78rem; opacity: 0.7; }

.auth-shell-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}
.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    align-self: flex-start;
    margin-bottom: 1rem;
}
.auth-home-link:hover { color: #0d9488; }
.auth-shell-brand .auth-home-link { color: rgba(255,255,255,0.85); position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2; }
.auth-shell-brand .auth-home-link:hover { color: #fff; }

.auth-card {
    width: 100%;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}
.auth-card-body { padding: 2rem; }
.auth-card .btn-primary {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border: none;
    font-weight: 600;
}
.auth-card .btn-primary:hover { filter: brightness(1.05); }

/* OTP verification */
.auth-shell-otp .auth-shell-form { max-width: 440px; }
.otp-card .auth-card-body { padding: 2rem 1.75rem 1.75rem; }
.otp-step-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
    background: #ccfbf1;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}
.otp-wa-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 1rem auto 0.75rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}
.otp-inputs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    margin: 0 auto;
}
.otp-digit,
.otp-inputs .otp-digit {
    display: block;
    width: 3rem !important;
    min-width: 3rem;
    max-width: 3rem;
    height: 3.25rem;
    flex: 0 0 3rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    border-radius: 0.85rem;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.otp-digit:focus {
    outline: none;
    border-color: #0d9488;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
    transform: translateY(-1px);
}
.otp-input {
    width: 2.75rem;
    height: 3.1rem;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0;
}
.otp-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
@media (max-width: 400px) {
    .otp-digit, .otp-inputs .otp-digit {
        width: 2.5rem !important;
        min-width: 2.5rem;
        max-width: 2.5rem;
        flex-basis: 2.5rem;
        height: 2.85rem;
        font-size: 1.25rem;
    }
    .otp-inputs { gap: 0.35rem; }
}
.otp-submit-btn { border-radius: 0.75rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.otp-resend-btn {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 600;
}
.otp-resend-btn:disabled { opacity: 0.65; }
.otp-toast {
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    text-align: center;
}
.otp-toast-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.otp-toast-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.otp-toast-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.otp-dev-hint {
    margin-top: 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: #fffbeb;
    border: 1px dashed #fcd34d;
    color: #92400e;
    font-size: 0.82rem;
    text-align: center;
}
.otp-dev-details {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #64748b;
}
.otp-dev-details summary { cursor: pointer; }
.otp-help strong { color: #334155; }
.otp-home-link { color: #64748b; text-decoration: none; }
.otp-home-link:hover { color: #0d9488; }
.otp-brand-powered {
    display: block;
    margin: 0.75rem auto 0;
    max-width: 240px;
    height: auto;
    border-radius: 0.5rem;
    opacity: 0.95;
}

.auth-shell-partner .auth-shell-form {
    background: #f8fafc;
    flex: 1;
    max-width: none;
    width: 100%;
}

@media (min-width: 992px) {
    .auth-shell-partner .auth-shell-form {
        flex: 0 0 480px;
        max-width: 480px;
    }
    .auth-shell-partner .auth-shell-brand {
        flex: 1;
    }
}

.auth-card .btn-primary:hover { filter: brightness(1.05); }

.auth-shell-partner .invalid-feedback.d-block {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 500;
}
.auth-shell-partner .partner-submit-btn {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.auth-shell-partner .partner-secondary-btn {
    border-width: 2px;
    font-weight: 600;
}

@media (max-width: 991px) {
    .auth-shell-form { max-width: 100%; }
}
