/* Authentication Pages Styles */

.auth-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
}

/* Login Prompt Styles */
.login-prompt {
    margin: 30px 0;
    text-align: center;
}

.prompt-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.prompt-content i {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 20px;
}

.prompt-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.prompt-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.prompt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Form Styles */
.auth-form {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input:invalid {
    border-color: #ef4444;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.8rem;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
}

/* Hide checkbox only if it has a custom checkmark sibling (for custom styled checkboxes) */
.checkbox-label input[type="checkbox"]:not([required]) {
    display: none;
}

/* Make required terms checkboxes visible */
.checkbox-label input[type="checkbox"][required],
.checkbox-label input[type="checkbox"][name="termsAccepted"],
input[type="checkbox"][name="termsAccepted"] {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #dc2626;
    border-color: #dc2626;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #1d4ed8;
}

/* Auth Button */
.auth-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-spinner {
    margin-left: 8px;
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #64748b;
    margin: 0;
}

.auth-footer a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    color: #1d4ed8;
}

/* Social Login */
.social-login {
    margin-top: 20px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #64748b;
    font-size: 0.9rem;
    position: relative;
}

.btn-social {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
}

.google-btn:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.facebook-btn:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: white;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-warning {
    border-left-color: #f59e0b;
}

.notification button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    margin-left: 15px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 80px 15px 30px;
    }
    
    .auth-card {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    #notification-container {
        right: 15px;
        left: 15px;
    }
    
    .notification {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 25px 20px;
    }
}
