/* ── Auth split layout ── */
.auth-split {
    display: grid;
    min-height: calc(100vh - 64px);
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .auth-split { grid-template-columns: 1fr 1fr; }
}

/* ── Left dark panel ── */
.auth-panel-left {
    display: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #071531;
}

@media (min-width: 992px) {
    .auth-panel-left { display: flex; flex-direction: column; }
}

.auth-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
    opacity: .35;
    z-index: -2;
}

.auth-sparkles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-sparkles span {
    position: absolute;
    color: rgba(245, 158, 11, .7);
    animation: auth-sparkle 3.5s ease-in-out infinite;
}

@keyframes auth-sparkle {
    0%, 100% { opacity: .3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.auth-panel-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: 3rem;
}

.auth-panel-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #fbbf24;
    margin: 0 0 1.25rem;
}

.auth-panel-quote {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.35;
    color: #f8fafc;
    max-width: 22ch;
    margin: 0 0 1rem;
    font-style: normal;
}

.auth-panel-attr {
    font-size: .875rem;
    color: rgba(248, 250, 252, .65);
    margin: 0;
}

/* ── Right form panel ── */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf8f0;
    padding: 4rem 1.25rem;
}

.auth-form-inner {
    width: 100%;
    max-width: 22rem;
}

.auth-form-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #1565e8;
    margin: 0 0 .75rem;
}

.auth-form-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: #0d1b2a;
    letter-spacing: -.025em;
    margin: 0 0 .5rem;
}

.auth-form-lead {
    font-size: .875rem;
    color: #6b7280;
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* ── Form elements ── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.auth-field label {
    font-size: .875rem;
    font-weight: 700;
    color: #0d1b2a;
}

.auth-field input {
    width: 100%;
    border-radius: .75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}

.auth-field input:focus {
    border-color: #1565e8;
    box-shadow: 0 0 0 3px rgba(21, 101, 232, .12);
}

.auth-error-alert {
    border-radius: .75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: .75rem 1rem;
    font-size: .875rem;
    font-weight: 600;
}

.auth-forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .875rem;
    margin-top: -.25rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1565e8;
    cursor: pointer;
}

.auth-forgot-row > a {
    color: #1565e8;
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot-row > a:hover { text-decoration: underline; }

.auth-submit-btn {
    width: 100%;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0d5ce4 0%, #2f7eff 100%);
    color: #fff;
    font-size: .875rem;
    font-weight: 800;
    font-family: inherit;
    padding: .9rem 1.5rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    margin-top: .25rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 101, 232, .35);
}

.auth-register-link {
    font-size: .875rem;
    color: #6b7280;
    text-align: center;
    margin: .25rem 0 0;
}

.auth-register-link a {
    font-weight: 700;
    color: #1565e8;
    text-decoration: none;
}

.auth-register-link a:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
    .auth-form-panel { padding: 3rem 1.25rem; }
    .auth-split { min-height: calc(100vh - 64px); }
}
