/* Auth experience */
html:has(body.auth-fullscreen-body),
body.auth-fullscreen-body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

body.auth-fullscreen-body #main-content {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.auth-fullscreen-body .auth-modern-page,
body.auth-fullscreen-body .auth-modern-shell {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.auth-fullscreen-body .auth-modern-aside,
body.auth-fullscreen-body .auth-modern-panel-wrap {
    height: 100vh;
    margin: 0;
    box-sizing: border-box;
}

.auth-modern-page {
    height: 100vh;
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(0, 87, 217, 0.88), rgba(15, 23, 42, 0.86)),
        url("/images/og-default.jpg") center/cover no-repeat;
    color: #111827;
    overflow: hidden;
}

.auth-modern-shell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    align-items: stretch;
}

.auth-modern-aside {
    color: #fff;
    padding: 0 clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.auth-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
}

.auth-brand-lockup img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
}

.auth-aside-copy {
    max-width: 620px;
    margin-top: 0;
    margin-bottom: 0;
}

.auth-aside-copy h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.auth-aside-copy p {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-aside-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2rem;
}

.auth-aside-point {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 1rem;
    min-height: 92px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.auth-aside-point i {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
}

.auth-aside-point span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    line-height: 1.45;
}

.auth-modern-panel-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(1.25rem, 4vw, 4rem);
    background: rgba(248, 250, 252, 0.95);
}

body.auth-fullscreen-body .auth-mobile-brand,
.auth-mobile-brand {
    display: none;
}

.auth-modern-panel {
    width: min(100%, 480px);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.auth-modern-panel.auth-wide {
    width: min(100%, 760px);
}

.auth-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0057d9;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-panel-title {
    color: #0f172a;
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 0.55rem;
}

.auth-panel-subtitle {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.auth-social-stack {
    display: grid;
    gap: 0.75rem;
}

.auth-social-btn {
    min-height: 54px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #111827;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-social-btn:hover {
    color: #111827;
    border-color: #94a3b8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.11);
    transform: translateY(-1px);
}

.auth-social-btn.google i {
    color: #ea4335;
}

.auth-social-btn.microsoft i {
    color: #2563eb;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #94a3b8;
    font-size: 0.84rem;
    font-weight: 600;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #e2e8f0;
    flex: 1;
}

.auth-email-toggle {
    width: 100%;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.auth-email-toggle:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.auth-email-form {
    margin-top: 1rem;
}

.auth-modern-panel .form-control {
    border-radius: 8px;
    border-color: #dbe3ee;
    min-height: 48px;
}

.auth-modern-panel .form-control:focus {
    border-color: #0057d9;
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 217, 0.14);
}

.auth-modern-panel .btn-primary {
    border-radius: 8px;
    min-height: 48px;
    background: #0057d9;
    border-color: #0057d9;
    font-weight: 700;
}

.auth-modern-panel .btn-primary:hover {
    background: #0047b3;
    border-color: #0047b3;
}

.auth-support-links {
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
    margin-top: 1.25rem;
}

.auth-support-links a {
    font-weight: 700;
    color: #0057d9;
    text-decoration: none;
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.auth-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-code-input {
    font-size: 1.8rem;
    letter-spacing: 0.45rem;
    font-weight: 800;
    text-align: center;
}

.auth-backup-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.auth-backup-code {
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.9rem 0.55rem;
    text-align: center;
}

.auth-backup-code code {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.auth-mini-card {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
}

.auth-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 992px) and (max-width: 1279.98px) {
    .auth-modern-panel-wrap {
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .auth-aside-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .auth-aside-point {
        min-height: 112px;
        padding: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    body.auth-fullscreen-body {
        overflow: hidden;
    }

    body.auth-fullscreen-body #main-content,
    body.auth-fullscreen-body .auth-modern-page,
    body.auth-fullscreen-body .auth-modern-shell {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .auth-modern-shell {
        grid-template-columns: 1fr;
    }

    .auth-modern-aside {
        display: none;
    }

    .auth-aside-copy {
        display: none;
    }

    .auth-modern-aside > .auth-trust-row {
        display: none;
    }

    .auth-modern-panel-wrap {
        height: 100vh;
        min-height: 100vh;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem 1rem;
        background: rgba(248, 250, 252, 0.96);
        overflow-y: auto;
    }

    body.auth-fullscreen-body .auth-mobile-brand {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #0f172a;
        font-weight: 800;
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 0.75rem;
        transform: translateY(-0.75rem);
    }

    body.auth-fullscreen-body .auth-mobile-brand img {
        width: clamp(150px, 38vw, 200px);
        height: clamp(150px, 38vw, 200px);
        border-radius: 8px;
    }

    body.auth-fullscreen-body .auth-mobile-brand span {
        display: none;
    }

    .auth-modern-panel {
        width: 100%;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    }

    .auth-aside-points {
        display: none;
    }
}

/* Tablet: 768px – 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    html:has(body.auth-fullscreen-body),
    body.auth-fullscreen-body,
    body.auth-fullscreen-body #main-content,
    body.auth-fullscreen-body .auth-modern-page,
    body.auth-fullscreen-body .auth-modern-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-modern-panel-wrap {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 2rem 3.5rem;
        justify-content: flex-start;
        padding-top: 2.5rem;
    }

    body.auth-fullscreen-body .auth-mobile-brand {
        margin-bottom: 1.25rem;
        transform: none;
    }

    body.auth-fullscreen-body .auth-mobile-brand img {
        width: 72px;
        height: 72px;
        border-radius: 8px;
    }

    .auth-modern-panel {
        width: min(100%, 520px);
        padding: 2rem;
    }

    .auth-panel-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 575.98px) {
    .auth-modern-page,
    .auth-modern-shell {
        min-height: 100vh;
    }

    .auth-modern-aside {
        padding: 1rem;
    }

    .auth-modern-panel-wrap {
        padding: 1rem;
    }

    .auth-modern-panel {
        padding: 1rem;
    }

    .auth-panel-title {
        font-size: 1.45rem;
    }

    .auth-panel-subtitle {
        font-size: 0.92rem;
    }

    .auth-social-btn {
        min-height: 50px;
    }

    .auth-actions-row,
    .auth-backup-grid {
        grid-template-columns: 1fr;
    }
}
