/* auth.css - Styling for Login and Signup pages */

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

.auth-left .logo {
    color: var(--text-main);
    font-size: 2.2rem;
    margin-bottom: 4px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.auth-left .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.auth-left .logo-icon::after {
    background: var(--bg-color);
    width: 32px;
    height: 32px;
}

.auth-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    z-index: 2;
    margin-top: 4px;
    font-weight: 500;
    font-style: italic;
}

.auth-left .glow-blob {
    opacity: 0.22;
}

.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
}

.auth-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15vw;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(34, 211, 238, 0.15), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.2), transparent 50%),
        linear-gradient(135deg, #0E2246 0%, #081226 100%);
    z-index: -1;
    clip-path: polygon(15vw 0, 100% 0, 100% 100%, 0 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form-container h2 {
    margin-bottom: 32px;
    font-size: 2rem;
    color: #ffffff;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Social Auth & Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.auth-divider::before {
    margin-right: .5em;
}

.auth-divider::after {
    margin-left: .5em;
}

.google-btn {
    width: 100%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    font-weight: 600;
}

.google-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 64px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.remember-me input {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #ffffff;
}

.auth-btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 16px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
}

.auth-btn:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-switch a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 992px) {
    .auth-wrapper {
        flex-direction: column;
    }
    
    .auth-left {
        flex: none;
        padding: 60px 20px;
    }
    
    .auth-right {
        flex: 1;
        padding: 40px 20px;
    }
    
    .auth-right::before {
        left: 0;
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 20px;
    }
    
    .auth-form-container h2 {
        font-size: 1.7rem;
    }
}
