/* Authentication Pages Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.auth-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-body {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #ffcc00;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.form-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

.password-toggle-btn:hover {
    color: #333;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffcc00;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.form-checkbox a {
    color: #ffcc00;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #999;
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
    z-index: 1;
}

.auth-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #ffcc00;
    background: #fffbf0;
}

.social-btn i {
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.auth-footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.back-to-home:hover {
    opacity: 1;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-btn.loading .loading-spinner {
    display: inline-block;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: none;
}

.success-message.show {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        max-width: 100%;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-body {
        padding: 30px 20px;
    }
    
    .auth-footer {
        padding: 15px 20px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .social-btn {
        justify-content: center;
    }
}
