/* ============================================
   Auth Pages - Login Styles
   MagicAI KOL Platform
   ============================================ */

.auth-body {
    overflow: hidden;
}

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

/* Animated Background */
.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.auth-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(240, 147, 251, 0.08) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Floating Orbs */
.floating-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(102, 126, 234, 0.3);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(118, 75, 162, 0.25);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(240, 147, 251, 0.2);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.orb-4 {
    width: 150px;
    height: 150px;
    background: rgba(102, 126, 234, 0.2);
    top: 30%;
    right: 30%;
    animation-delay: -7s;
    animation-duration: 16s;
}

.orb-5 {
    width: 180px;
    height: 180px;
    background: rgba(56, 239, 125, 0.1);
    bottom: 30%;
    right: 20%;
    animation-delay: -3s;
    animation-duration: 25s;
}

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

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

/* Login Card */
.login-card {
    background: rgba(15, 20, 40, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(102, 126, 234, 0.05);
    animation: cardAppear 0.6s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Login Form */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form .form-control {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.login-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.login-form .input-icon-wrapper .form-control {
    padding-left: 44px;
}

.login-form .input-icon-wrapper .input-icon {
    font-size: 16px;
}

/* Remember Me */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: var(--color-primary);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
}

.login-btn:hover {
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Login Alert */
.login-card .alert {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 24px;
    }
    
    .auth-container {
        padding: 16px;
    }
}
