/* ============================================================
   auth.css — split-panel layout for Register/Login
   Left: brand panel (green gradient)
   Right: form panel (white)
   ============================================================ */

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---------- Left brand panel ---------- */
.auth-brand {
    flex: 1;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.20), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.12), transparent 40%);
    pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}
.auth-brand-logo:hover { color: #fff; text-decoration: none; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 9px;
    backdrop-filter: blur(4px);
}

.auth-brand-content {
    max-width: 460px;
    margin: auto 0;
}
.auth-brand-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
}
.auth-brand-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
}

/* Referral tier list */
.auth-brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-brand-points li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}
.auth-brand-points i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Commission / HWM callout on the brand panel */
.auth-brand-callout {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}
.auth-brand-callout-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.4rem;
}
.auth-brand-callout-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}
.auth-brand-callout-text strong { font-weight: 700; }

.auth-brand-footer {
    font-size: 0.78rem;
    opacity: 0.65;
}

/* ---------- Right form panel ---------- */
.auth-form-panel {
    flex: 1;
    background: var(--bg-primary);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.auth-form-header {
    margin-bottom: 1.5rem;
}
.auth-form-header.text-center { text-align: center; }
.auth-form-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}
.auth-form-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form-foot {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}
.auth-form-foot a {
    color: var(--green-dark);
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span { padding: 0 1rem; }

/* ---------- Inline commission info card (on form side) ---------- */
.commission-info {
    margin: 1rem 0 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--green-bg);
    border: 1px solid rgba(0, 211, 132, 0.30);
    border-radius: var(--radius-sm);
}
.commission-info-title {
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.commission-info-text {
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
}
.commission-info-text strong { color: var(--green-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .auth-brand { display: none; }
}
