.auth-page {
    display: block;
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: radial-gradient(circle at 15% 0%, rgba(13,110,253,.18), transparent 30%), #07111d;
}

/* ---------- Split layout: content left, form right (tablet/laptop/desktop) ---------- */
.auth-layout { display: flex; width: 100%; min-height: 100dvh; }
.auth-info {
    flex: 1 1 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    padding: 48px clamp(28px, 4vw, 68px);
    border-right: 1px solid rgba(126,166,218,.14);
    background:
        radial-gradient(circle at 18% 18%, rgba(31,214,164,.16), transparent 46%),
        radial-gradient(circle at 88% 82%, rgba(58,160,255,.14), transparent 46%),
        linear-gradient(160deg, #0d1a28, #070f18);
}
.auth-info-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    color: #5eefc4; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.auth-info-title {
    margin: 0; max-width: 460px; color: #f4f8fc; font-size: clamp(26px, 2.6vw, 38px);
    line-height: 1.1; letter-spacing: -0.03em; font-weight: 800;
}
.auth-info-copy { margin: 0; max-width: 440px; color: #93a9c0; font-size: 14px; line-height: 1.7; }
.auth-info-list { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; color: #c3d3e2; font-size: 13px; }
.auth-info-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.auth-info-list i { color: #1fd6a4; margin-top: 2px; }
.auth-info-stats { display: flex; gap: 26px; margin-top: 6px; }
.auth-info-stats strong { display: block; color: #fff; font-size: 20px; font-weight: 800; }
.auth-info-stats span { display: block; margin-top: 2px; color: #7d92a8; font-size: 11px; font-weight: 700; }
.auth-info::before {
    content: ""; position: absolute; inset: -10% -8%; pointer-events: none; z-index: 0;
    background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(148,178,208,.03) 3px 4px);
}
.auth-info > * { position: relative; z-index: 1; }

.auth-form-pane {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow-y: auto;
    max-height: 100dvh;
}

.auth-shell { width: min(100%, 500px); margin: 0 auto; padding: 0; }

.auth-back { display: inline-flex; align-items: center; gap: 7px; color: #9db3ca; font-size: 12px; font-weight: 800; margin-bottom: 22px; }
.auth-back:hover { color: #fff; }
.auth-card { width: 100%; padding: 38px 42px; border: 1px solid rgba(126,166,218,.2); border-radius: 12px; background: linear-gradient(145deg, #102238, #0a1727); box-shadow: 0 28px 90px rgba(0,0,0,.42); }
.login-card, .register-card { max-width: none; }
.auth-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; margin-bottom: 25px; text-align: center; }
.auth-brand img { width: auto; height: auto; max-width: min(220px, 100%); max-height: 64px; object-fit: contain; }
.auth-brand-name { color: #f5f8fc; font-family: 'Syne', 'Outfit', sans-serif; font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; letter-spacing: .1em; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(58,160,255,.18); }
.auth-heading { margin: 0 0 8px; color: #fff; font-size: 30px; letter-spacing: -.03em; }
.auth-copy { margin: 0 0 24px; color: #96abc1; font-size: 13px; line-height: 1.6; }
.auth-field { margin-bottom: 15px; }
.auth-label { display: block; margin-bottom: 7px; color: #b6c6d6; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > i { position: absolute; left: 14px; top: 50%; color: #6e87a2; transform: translateY(-50%); pointer-events: none; }
.auth-input-wrap .form-control { min-height: 46px; padding-left: 42px; }
.auth-input-wrap .auth-toggle { position: absolute; right: 9px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 7px; background: transparent; color: #8fa5bc; }
.auth-input-wrap .auth-toggle:hover { background: rgba(255,255,255,.07); color: #fff; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 5px 0 20px; color: #9db0c4; font-size: 12px; }
.auth-check { display: flex; align-items: center; gap: 7px; }
.auth-check input { accent-color: #0d6efd; }
.auth-help { color: #75adff; font-weight: 800; }
.auth-note { margin: 18px 0; padding: 12px 13px; border: 1px solid rgba(13,110,253,.22); border-radius: 8px; background: rgba(13,110,253,.08); color: #a9bfd7; font-size: 11px; line-height: 1.5; }
.auth-submit { min-height: 48px; border-radius: 8px; background: #0d6efd; color: #fff; font-weight: 900; }
.auth-submit:hover { background: #3d8bfd; }
.auth-footer { margin-top: 22px; color: #94a8bd; font-size: 12px; text-align: center; }
.auth-footer a { color: #75adff; font-weight: 900; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: #607894; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: rgba(126,166,218,.16); content: ""; }

/* ---------- Large screens: keep the whole card reachable without scrolling ---------- */
@media (min-width: 861px) {
    .auth-card { padding: 30px 38px; }
    .auth-heading { font-size: 25px; margin-bottom: 5px; }
    .auth-copy { margin-bottom: 16px; font-size: 12.5px; }
    .auth-brand { margin-bottom: 16px; }
    .auth-input-wrap .form-control { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
    .auth-meta { margin: 3px 0 14px; }
    .auth-note { margin: 12px 0; padding: 9px 11px; font-size: 10.5px; }
    .auth-submit { min-height: 42px; }
    .auth-divider { margin-top: 14px; }
    .mb-3 { margin-bottom: .65rem !important; }
    .mb-4 { margin-bottom: .85rem !important; }
    .auth-card .mt-4 { margin-top: .9rem !important; }
    .auth-card .mt-3 { margin-top: .6rem !important; }
    .auth-card .pt-2 { padding-top: .4rem !important; }
}
@media (min-width: 861px) and (max-height: 800px) {
    .auth-info { padding-top: 28px; padding-bottom: 28px; gap: 12px; }
    .auth-info-title { font-size: clamp(22px, 2.2vw, 30px); }
    .auth-info-list { gap: 8px; }
    .auth-form-pane { padding: 14px; }
    .auth-card { padding: 22px 32px; }
    .auth-heading { font-size: 22px; }
}
@media (min-width: 861px) and (max-height: 680px) {
    .auth-info { display: none; }
    .auth-form-pane { flex: 1 1 100%; }
    .auth-card { padding: 18px 30px; }
    .auth-heading { font-size: 20px; margin-bottom: 3px; }
    .auth-copy { font-size: 11.5px; margin-bottom: 10px; }
    .auth-brand { margin-bottom: 10px; }
    .auth-input-wrap .form-control { min-height: 36px; }
    .auth-label { font-size: 10px; margin-bottom: 4px; }
    .auth-note { margin: 8px 0; padding: 7px 10px; font-size: 10px; }
    .auth-submit { min-height: 38px; }
    .mb-3 { margin-bottom: .4rem !important; }
    .mb-4 { margin-bottom: .55rem !important; }
}

/* ---------- Tablet / phone: single column, info panel hidden ---------- */
@media (max-width: 860px) {
    .auth-page { height: auto; overflow: visible; }
    .auth-layout { display: block; min-height: 100dvh; }
    .auth-info { display: none; }
    .auth-form-pane { display: block; max-height: none; overflow-y: visible; padding: 0; }
    .auth-shell { width: min(100%, 560px); margin: 0 auto; padding: 26px 18px; }
}
@media (max-width: 680px) {
    .auth-page { align-items: flex-start; overflow-y: auto; }
    .auth-shell { width: min(100%, 560px); padding: 18px 14px 28px; }
    .auth-card { padding: 30px 28px; }
}
@media (max-width: 480px) {
    .auth-shell { padding: 12px 10px 22px; }
    .auth-card { padding: 25px 18px; }
    .auth-heading { font-size: 26px; }
    .auth-card .row > [class*="col-"] { width: 100%; }
}
