/* ============================================
   Nyce Music - Auth Page Styles
   ============================================ */

.auth-layout {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* ── Animated Background ── */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--bg-primary);
}

.auth-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.auth-bg .orb-1 {
    width: 400px; height: 400px;
    background: var(--primary-700);
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.auth-bg .orb-2 {
    width: 350px; height: 350px;
    background: var(--secondary-600);
    bottom: -80px; right: -80px;
    animation-delay: 2s;
}

.auth-bg .orb-3 {
    width: 250px; height: 250px;
    background: var(--accent-700);
    top: 40%; left: 60%;
    animation-delay: 4s;
}

/* ── Auth Container ── */
.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

/* ── Left Panel (Branding) ── */
.auth-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-16);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.auth-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}

.auth-brand-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.auth-brand-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
}

.auth-brand-heading {
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.auth-brand-subtext {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-10);
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 78, 17, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

/* ── Right Panel (Form) ── */
.auth-form-panel {
    width: 520px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    padding: var(--space-12) var(--space-16);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-default);
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.auth-form-header {
    margin-bottom: var(--space-8);
}

.auth-form-header h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.auth-form-header p {
    color: var(--text-tertiary);
    font-size: var(--text-base);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-default);
}

.social-login-btns {
    display: flex;
    gap: var(--space-3);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.auth-footer {
    margin-top: var(--space-8);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.auth-footer a {
    color: var(--primary-400);
    font-weight: 600;
}

.forgot-link {
    font-size: var(--text-sm);
    color: var(--primary-400);
    text-align: right;
    display: block;
    margin-top: calc(-1 * var(--space-3));
    margin-bottom: var(--space-4);
}

/* ── Role Selection Cards ── */
.role-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.role-card {
    padding: var(--space-5);
    background: var(--bg-glass);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.role-card:hover {
    border-color: var(--primary-500);
    background: rgba(255, 78, 17, 0.05);
}

.role-card.selected {
    border-color: var(--primary-500);
    background: rgba(255, 78, 17, 0.1);
    box-shadow: 0 0 0 1px var(--primary-500);
}

.role-card input { display: none; }

.role-card .role-icon {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.role-card .role-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.role-card .role-desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* ── Password Strength ── */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: var(--space-2);
}

.strength-bar {
    flex: 1;
    height: 3px;
    background: var(--neutral-800);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.strength-bar.active.weak { background: var(--error-500); }
.strength-bar.active.medium { background: var(--warning-500); }
.strength-bar.active.strong { background: var(--success-500); }

/* ── Mobile-only brand mark ──
   .auth-branding (with the logo) is hidden below 1024px, so the two-panel
   pages (login/register) need their own compact logo — shown only when
   the branding panel is gone, matching the single-panel auth pages
   (forgot/reset-password, verify-email) which already carry their own. */
.auth-form-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    text-decoration: none;
}
.auth-form-mobile-logo span {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .auth-branding { display: none; }
    .auth-form-mobile-logo { display: flex; }
    .auth-form-panel {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        border-left: none;
        padding: var(--space-8);
    }
    .auth-container { justify-content: center; }
}

@media (max-width: 480px) {
    .auth-form-panel { padding: var(--space-6); }
    .auth-form .form-row { grid-template-columns: 1fr; }
    .role-cards { grid-template-columns: 1fr; }
    .social-login-btns { flex-direction: column; }
}
