/* ==========================================================================
   Login & register pages — split brand / form card
   ========================================================================== */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.12), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(236, 72, 153, 0.12), transparent 45%),
        var(--color-bg);
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 920px;
    min-height: 560px;
    background-color: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ---------- Left: brand panel ---------- */

.auth-brand {
    position: relative;
    flex: 1 1 42%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    background: var(--gradient-brand);
    color: #fff;
    overflow: hidden;
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.auth-brand::before {
    width: 260px;
    height: 260px;
    top: -90px;
    right: -90px;
}

.auth-brand::after {
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: -50px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.auth-brand-top span {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-brand-body {
    position: relative;
}

.auth-brand-body h2 {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.auth-brand-body p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-feature-list {
    position: relative;
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
}

.auth-feature-list svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.auth-brand-foot {
    position: relative;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Right: form panel ---------- */

.auth-form-panel {
    flex: 1 1 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.25rem;
}

.auth-form-header {
    margin-bottom: 1.75rem;
}

.auth-form-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.auth-form-header p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

@media screen and (max-width: 760px) {
    .auth-brand {
        display: none;
    }

    .auth-card {
        min-height: 0;
    }

    .auth-form-panel {
        padding: 2.5rem 1.75rem;
    }
}

@media screen and (max-width: 480px) {
    .auth-form-grid {
        grid-template-columns: 1fr;
    }
}
