/* ─── Login / Register page ─── */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f5f5f9 0%, #ede9fe 100%);
    padding: 2rem 1rem;
}
.auth-card {
    background: #fff; border-radius: 20px;
    padding: 2.5rem 2rem; width: 100%; max-width: 420px;
    box-shadow: 0 20px 60px rgba(124,58,237,.12);
}
.auth-logo {
    display: flex; align-items: center; gap: 10px;
    justify-content: center; margin-bottom: 1.8rem;
}
.auth-logo .brand-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.auth-logo .brand-text { font-size: 1.5rem; font-weight: 800; color: var(--text-heading); }
.auth-tabs { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 1.5rem; }
.auth-tab {
    flex: 1; padding: 10px; text-align: center;
    font-size: .875rem; font-weight: 600; color: var(--text-muted);
    cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeIn .2s ease; }
.auth-alert { margin-bottom: 1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .82rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .input-control { padding-left: 40px; }
.auth-input-wrap i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .85rem; pointer-events: none; }
.auth-submit {
    width: 100%; padding: 13px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 10px; font-size: .9rem; font-weight: 700;
    transition: background .2s, transform .15s;
    margin-top: .5rem;
}
.auth-submit:hover { background: var(--primary-dark); }
.auth-submit:active { transform: scale(.98); }
.auth-divider { text-align: center; margin: 1.2rem 0; color: var(--text-muted); font-size: .8rem; position: relative; }
.auth-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 42%; height: 1px; background: var(--border-color); }
.auth-divider::after  { content: ''; position: absolute; right: 0; top: 50%; width: 42%; height: 1px; background: var(--border-color); }
