/* ============================================================
   Login / Signup Page
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Animated background particles */
.auth-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
}
.auth-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}
.auth-bg .orb-1 {
    width: 400px; height: 400px;
    background: var(--accent);
    top: -100px; right: -100px;
    animation-delay: 0s;
}
.auth-bg .orb-2 {
    width: 300px; height: 300px;
    background: #7c3aed;
    bottom: -80px; left: -80px;
    animation-delay: -7s;
}
.auth-bg .orb-3 {
    width: 200px; height: 200px;
    background: var(--success);
    top: 50%; left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    position: relative;
    z-index: 1;
}

/* Logo Area */
.auth-logo {
    text-align: center;
    margin-bottom: 36px;
}
.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}
.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.auth-logo p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Auth Form */
.auth-form .form-input {
    padding: 14px 16px;
    font-size: 0.938rem;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* Password visibility toggle */
.input-wrap {
    position: relative;
}
.input-wrap .toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}
.input-wrap .toggle-pw:hover {
    color: var(--accent);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.813rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--accent);
    font-weight: 500;
}

/* Status message */
.auth-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: none;
}
.auth-message.show { display: block; }
.auth-message.error {
    background: rgba(var(--danger-rgb), 0.1);
    border: 1px solid rgba(var(--danger-rgb), 0.2);
    color: var(--danger);
}
.auth-message.success {
    background: rgba(var(--success-rgb), 0.1);
    border: 1px solid rgba(var(--success-rgb), 0.2);
    color: var(--success);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }
    .auth-logo h1 {
        font-size: 1.3rem;
    }
}
