/* ============================================
   Login/Signup Page Styles
   ============================================ */

/* Auth Section */
.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background: var(--gradient-light);
}

.auth-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-container h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

/* Submit Button */
.auth-container .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    border-radius: var(--border-radius-sm);
}

/* Toggle Text */
.auth-text {
    margin-top: 1.5rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.auth-text a {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-text a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Remember Me & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-password {
    color: var(--accent-orange);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--light);
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 1.2rem;
}

/* Error/Success Messages */
.auth-message {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.auth-message.error {
    display: block;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-message.success {
    display: block;
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }

    .auth-container h1 {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .social-login {
        flex-direction: column;
    }
}
