/* =============================================
   ScriptifyZone - Auth Pages (Login/Register)
   ============================================= */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg-primary); position: relative; overflow: hidden;
}

.auth-container {
    width: 100%; max-width: 480px; padding: 20px; position: relative; z-index: 1;
}
.auth-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 40px;
    box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}

/* Background shapes */
.auth-bg-shapes .shape {
    position: fixed; border-radius: 50%; opacity: 0.08; pointer-events: none;
    animation: floatAuth 25s infinite ease-in-out;
}
.auth-bg-shapes .s1 { width: 500px; height: 500px; background: var(--primary); top: -200px; right: -100px; }
.auth-bg-shapes .s2 { width: 400px; height: 400px; background: var(--secondary); bottom: -150px; left: -100px; animation-delay: -5s; }
.auth-bg-shapes .s3 { width: 300px; height: 300px; background: var(--accent); top: 40%; right: -80px; animation-delay: -10s; }
.auth-bg-shapes .s4 { width: 250px; height: 250px; background: var(--info); top: 10%; left: -60px; animation-delay: -15s; }
.auth-bg-shapes .s5 { width: 200px; height: 200px; background: var(--success); bottom: 20%; right: 10%; animation-delay: -7s; }
.auth-bg-shapes .s6 { width: 150px; height: 150px; background: var(--warning); top: 30%; left: 20%; animation-delay: -3s; }

@keyframes floatAuth {
    0%,100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(40px, -40px) scale(1.05) rotate(120deg); }
    66% { transform: translate(-30px, 20px) scale(0.95) rotate(240deg); }
}

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.auth-logo i { width: 42px; height: 42px; background: var(--gradient-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.auth-logo span span { color: var(--primary); }
.auth-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 15px; }

/* Auth Form */
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.form-group label .required { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px; border: 2px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 14px; background: var(--bg-primary); color: var(--text-primary);
    transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.password-wrapper { position: relative; }
.password-wrapper input { width: 100%; padding-right: 44px; }
.toggle-password {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--text-muted);
    font-size: 16px; padding: 4px;
}
.toggle-password:hover { color: var(--primary); }

.form-options { display: flex; justify-content: space-between; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.forgot-link { font-size: 13px; color: var(--primary); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* Role Selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option {
    padding: 16px; border: 2px solid var(--border-color); border-radius: var(--radius-md);
    text-align: center; cursor: pointer; transition: all 0.3s;
}
.role-option:hover { border-color: var(--primary); }
.role-option.active { border-color: var(--primary); background: rgba(108,92,231,0.08); }
.role-option i { font-size: 24px; color: var(--primary); display: block; margin-bottom: 8px; }
.role-option span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.role-option small { font-size: 11px; color: var(--text-muted); }

/* Social Login */
.auth-divider { text-align: center; margin: 24px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-color); }
.auth-divider span { background: var(--bg-card); padding: 0 16px; position: relative; font-size: 13px; color: var(--text-muted); }

.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-social {
    padding: 12px; border: 2px solid var(--border-color); border-radius: var(--radius-sm);
    background: transparent; cursor: pointer; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--text-secondary); transition: all 0.3s;
}
.btn-social:hover { border-color: var(--primary); color: var(--text-primary); }
.btn-social.google:hover { border-color: #ea4335; color: #ea4335; }
.btn-social.github:hover { border-color: #333; color: #333; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Floating theme toggle on auth pages */
.theme-toggle.floating { position: fixed; bottom: 30px; right: 30px; z-index: 100; }

@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .role-selector { grid-template-columns: 1fr; }
    .social-login { grid-template-columns: 1fr; }
}