/* ============================================================
 * SentryCBT — Modern auth pages
 *   Split-screen layout, premium hero panel, modern inputs.
 *   Loads on top of style.bundle.css + app-overrides.css.
 * ============================================================ */

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

.auth-shell-hero {
    position: relative;
    flex: 1 1 50%;
    background: linear-gradient(135deg, #0B1B3F 0%, #1B2D58 45%, #0F4C81 100%);
    overflow: hidden;
    color: #fff;
}
.auth-shell-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.10) 0, transparent 35%),
        radial-gradient(circle at 80% 78%, rgba(255, 255, 255, 0.07) 0, transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    opacity: 0.9;
    pointer-events: none;
}
.auth-shell-hero-tenant {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.95) 0%, rgba(var(--bs-primary-rgb), 0.75) 60%, #0F172A 100%);
}

.auth-shell-hero-inner {
    position: relative;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 1;
}

.auth-shell-form {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: #FFFFFF;
}

.auth-card {
    width: 100%;
    max-width: 460px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.auth-brand .auth-brand-mark {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 2rem;
    object-fit: contain;
}
img.auth-brand-mark { background: transparent !important; border: 0; }
.auth-brand .auth-brand-mark-light { color: rgb(var(--bs-primary-rgb)); }
.auth-brand .auth-brand-name {
    font-weight: 700;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Full horizontal lockup used on the white form/mobile side. */
.auth-brand-lockup {
    height: 64px;
    width: auto;
    object-fit: contain;
    background: transparent;
}
.auth-mobile-brand .auth-brand-lockup { height: 56px; }

.auth-hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    max-width: 36rem;
}
.auth-hero-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    max-width: 32rem;
    margin-top: 0.875rem;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    display: grid;
    gap: 1rem;
    max-width: 32rem;
}
.auth-feature-list li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.86);
    font-size: 0.95rem;
    line-height: 1.5;
}
.auth-feature-list .auth-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.auth-foot-meta {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

/* Form-side */
.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.auth-eyebrow {
    color: rgb(var(--bs-primary-rgb));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.auth-subtitle {
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* Modern input look */
.auth-input-group {
    position: relative;
}
.auth-input-group .form-control.form-control-lg {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding-left: 3rem;
    padding-right: 1rem;
    height: 52px;
    font-size: 0.95rem;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.auth-input-group .form-control.form-control-lg:focus {
    background: #ffffff;
    border-color: rgb(var(--bs-primary-rgb));
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.10);
}
.auth-input-group .auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
}
.auth-input-group .auth-input-toggle {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #94A3B8;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}
.auth-input-group .auth-input-toggle:hover { color: #475569; }
.auth-input-group .form-control.has-icon-end { padding-right: 3rem; }

/* OTP boxes */
.auth-otp-input {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    height: 64px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.auth-otp-input:focus {
    background: #ffffff;
    border-color: rgb(var(--bs-primary-rgb));
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.10);
    outline: none;
}

/* CTA button */
.auth-cta {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgb(var(--bs-primary-rgb));
    color: #fff;
    border: 0;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
    box-shadow: 0 8px 20px -8px rgba(var(--bs-primary-rgb), 0.45);
}
.auth-cta:hover { background: rgb(var(--bs-primary-rgb) / 0.92); transform: translateY(-1px); }
.auth-cta:focus { box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.20); outline: none; }
.auth-cta:disabled { opacity: 0.55; transform: none; box-shadow: none; cursor: not-allowed; }

.auth-secondary {
    color: rgb(var(--bs-primary-rgb));
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}
.auth-secondary:hover { text-decoration: underline; }

.auth-error {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: rgba(241, 65, 108, 0.08);
    border: 1px solid rgba(241, 65, 108, 0.18);
    color: #B11A47;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-success {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: rgba(80, 205, 137, 0.10);
    border: 1px solid rgba(80, 205, 137, 0.22);
    color: #119C5B;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-divider {
    text-align: center;
    color: #94A3B8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    margin: 1.5rem 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 2.5rem);
    height: 1px;
    background: #E2E8F0;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-foot {
    margin-top: 1.5rem;
    text-align: center;
    color: #94A3B8;
    font-size: 0.75rem;
}
.auth-foot a { color: #475569; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* Tenant logo image inside hero */
.auth-hero-logo {
    max-height: 110px;
    width: auto;
    object-fit: contain;
}

/* QR code panel for 2FA enroll */
.auth-qr-card {
    padding: 1.25rem;
    background: #F8FAFC;
    border-radius: 16px;
    border: 1px dashed #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-qr-card svg, .auth-qr-card img { width: 200px; height: 200px; }
.auth-secret-code {
    background: #F1F5F9;
    color: #0F172A;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Big focus block for password strength reminders */
.auth-hint {
    margin-top: 0.5rem;
    background: rgba(var(--bs-primary-rgb), 0.06);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.78rem;
    color: #475569;
}

/* Responsive: collapse hero on mobile */
@media (max-width: 991.98px) {
    .auth-shell { display: block; }
    .auth-shell-hero { display: none; }
    .auth-shell-form { padding: 2rem 1rem; min-height: 100vh; }
    .auth-mobile-brand { display: inline-flex; }
}
