/* Authentication Styles */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem 1rem;
    padding-top: 120px;
}

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

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    animation: fadeInUp 0.6s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    animation: rocket-float 2s ease-in-out infinite;
}

.auth-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

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

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.auth-tab:hover:not(.active) {
    color: #667eea;
}

/* Form Containers */
.auth-form-container {
    transition: all 0.3s ease;
}

.auth-form-container.hidden {
    display: none;
}

.auth-form {
    animation: slideIn 0.3s ease;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Links */
.forgot-password,
.terms-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover,
.terms-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Buttons */
.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

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

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.google-btn {
    border-color: #db4437;
    color: #db4437;
}

.google-btn:hover:not(.disabled) {
    background: #db4437;
    color: white;
}

.google-btn.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.google-btn.disabled:hover {
    background: #ccc;
    transform: none;
}

.apple-btn {
    border-color: #000;
    color: #000;
}

.apple-btn:hover {
    background: #000;
    color: white;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: #666;
    font-size: 0.9rem;
}

.auth-switch {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-switch:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Success/Error Messages */
.auth-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading State */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-section {
        padding: 1rem;
        padding-top: 100px;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-login {
        gap: 0.5rem;
    }
    
    .social-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .auth-header h2 {
        color: #e0e0e0;
    }
    
    .auth-header p {
        color: #b0b0b0;
    }
    
    .auth-tabs {
        background: #2a2a2a;
    }
    
    .auth-tab {
        color: #b0b0b0;
    }
    
    .form-group label {
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group select {
        background: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        border-color: #667eea;
    }
    
    .social-btn {
        background: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .auth-divider::before {
        background: #404040;
    }
    
    .auth-divider span {
        background: #1a1a1a;
        color: #b0b0b0;
    }
    
    .auth-footer {
        border-top-color: #404040;
    }
    
    .auth-footer p {
        color: #b0b0b0;
    }
    
    .form-loading h3 {
        color: #e0e0e0;
    }
    
    .form-loading p {
        color: #b0b0b0;
    }
}

/* Form Loading State Styles */
.form-loading {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    animation: rocket-float 2s ease-in-out infinite;
}

.loading-spinner .fa-check-circle {
    color: #22c55e;
    animation: none;
}

.form-loading h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.form-loading p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Hide form fields when loading */
.form-fields {
    transition: opacity 0.3s ease;
}

.form-fields.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 