/* Login Page Styles */
body {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-page {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Background Animation */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(64, 224, 208, 0.1) 0%, transparent 70%);
    animation: pulseBg 4s ease-in-out infinite;
}

@keyframes pulseBg {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.auth-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(var(--card-bg-rgb), 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 500px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    position: relative;
}

.auth-card h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    margin-top: 0.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Reset Password Popup */
.reset-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-popup.active {
    display: flex;
    opacity: 1;
}

.reset-popup-content {
    background: rgba(var(--card-bg-rgb), 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    width: 95%;
    max-width: 600px;
    position: relative;
    margin-top: -100%;
    transition: margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-popup.active .reset-popup-content {
    margin-top: 100px;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.close-popup:hover {
    color: var(--accent-secondary);
    transform: rotate(90deg);
}

.reset-popup h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-form input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    border: 2px solid var(--input-border);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--accent-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.2);
}

.auth-form input:focus + i {
    color: var(--accent-secondary);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--accent-secondary);
    transform: translateY(-50%) scale(1.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-secondary);
    margin-right: 4px;
}

.forgot-password {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.cta-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.3);
}

.social-auth {
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

.social-auth p {
    display: inline-block;
    padding: 0 1rem;
    background: var(--card-bg);
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-secondary);
    background: rgba(64, 224, 208, 0.1);
}

.social-btn i {
    font-size: 1.2rem;
}

.auth-switch {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.auth-features {
    padding: 2rem;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.6s ease-out forwards 0.3s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.feature i {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-features {
        display: none;
    }

    .auth-card {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem;
    }

    .auth-card h2 {
        font-size: 2rem;
    }

    .social-buttons {
        flex-direction: column;
    }
}
