/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(94, 92, 230, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(191, 90, 242, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 55, 95, 0.05) 0%, transparent 60%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Emojis */
.auth-bg-emoji {
    position: absolute;
    font-size: 60px;
    opacity: 0.15;
    filter: blur(2px);
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-emoji:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; font-size: 50px; }
.auth-bg-emoji:nth-child(2) { top: 20%; right: 15%; animation-delay: -3s; font-size: 70px; }
.auth-bg-emoji:nth-child(3) { bottom: 25%; left: 8%; animation-delay: -5s; font-size: 55px; }
.auth-bg-emoji:nth-child(4) { bottom: 15%; right: 10%; animation-delay: -7s; font-size: 65px; }
.auth-bg-emoji:nth-child(5) { top: 50%; left: 3%; animation-delay: -2s; font-size: 45px; }
.auth-bg-emoji:nth-child(6) { top: 8%; right: 30%; animation-delay: -4s; font-size: 40px; }
.auth-bg-emoji:nth-child(7) { bottom: 40%; right: 5%; animation-delay: -6s; font-size: 50px; }
.auth-bg-emoji:nth-child(8) { top: 35%; left: 15%; animation-delay: -8s; font-size: 35px; }

/* Dark theme adjustments */
.dark-theme .auth-bg-emoji {
    opacity: 0.1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(15px) rotate(-5deg); }
}

.auth-container {
    position: relative;
    z-index: 1;
}

.auth-container {
    display: flex;
    max-width: 1100px;
    width: 100%;
    gap: 40px;
    align-items: center;
}

/* Left Decoration Side */
.auth-decoration {
    flex: 1;
    position: relative;
    max-width: 450px;
    display: none;
}

@media (min-width: 900px) {
    .auth-decoration {
        display: block;
    }
}

.auth-decoration-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.auth-decoration .logo {
    font-size: 32px;
    margin-bottom: 30px;
}

.auth-decoration h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.3;
    color: var(--text-primary);
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.auth-feature svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--accent);
}

.auth-decoration-image {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 350px;
    height: 500px;
    z-index: 1;
    opacity: 0.15;
}

.auth-decoration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Right Forms Side */
.auth-forms {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.auth-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.auth-card.hidden {
    display: none;
}

.auth-logo {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.auth-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input-group {
    position: relative;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 14px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.auth-input-group input:focus {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.auth-input-group label {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 13px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.auth-input-group input:focus + label,
.auth-input-group input:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 11px;
    color: var(--accent);
    background: var(--bg-tertiary);
    padding: 0 4px;
}

.auth-input-group input::placeholder {
    color: transparent;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
}

.auth-password-toggle .eye-closed {
    display: none;
}

.auth-password-toggle.active .eye-open {
    display: none;
}

.auth-password-toggle.active .eye-closed {
    display: block;
}

.auth-submit-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

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

.auth-divider span {
    padding: 0 16px;
}

.auth-social-btn {
    width: 100%;
    padding: 10px;
    background: none;
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.auth-social-btn:hover {
    background: var(--bg-tertiary);
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-forgot {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}

.auth-forgot:hover {
    color: var(--text-primary);
}

.auth-terms {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin-top: 16px;
}

.auth-terms a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Switch Card */
.auth-switch-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.auth-switch-card.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-switch-card span {
    color: var(--text-secondary);
}

.auth-switch-card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch-card a:hover {
    text-decoration: underline;
}

/* App Download */
.auth-app-download {
    text-align: center;
    margin-top: 10px;
}

.auth-app-download p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.auth-app-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.auth-app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #000;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.dark-theme .auth-app-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.auth-app-btn:hover {
    transform: scale(1.02);
}

.auth-app-btn svg {
    width: 20px;
    height: 20px;
}

/* Theme Toggle in Auth Page */
.auth-theme-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

/* Hide app download on mobile */
@media (max-width: 640px) {
    .auth-app-download {
        display: none;
    }
}

@media (max-width: 640px) {
    .auth-container {
        padding: 0;
        gap: 0;
    }
    
    .auth-forms {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 30px 20px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .dark-theme .auth-card {
        background: rgba(28, 28, 30, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .auth-switch-card {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .dark-theme .auth-switch-card {
        background: rgba(28, 28, 30, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .auth-logo {
        font-size: 32px;
    }
    
    .auth-app-download {
        margin-top: 20px;
    }
}
