/* Authentication Pages Styles */

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

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

/* Logo Animation */
.logo-bounce {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

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

.form-input:focus {
    outline: none;
    border-color: #16a34a;
    background: white;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Error Messages */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

/* Social Buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 18px;
}

/* Success Animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.success-animation {
    animation: successPulse 0.5s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #16a34a;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Responsive Design */
@media (max-width: 640px) {
    .auth-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .form-input {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .social-btn {
        font-size: 13px;
        padding: 9px;
    }
}

@media (max-width: 320px) {
    .auth-container {
        padding: 20px 12px;
        border-radius: 10px;
    }
    
    .form-input {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .form-label {
        font-size: 12px;
        gap: 6px;
    }
    
    .form-label i {
        font-size: 12px;
    }
    
    .social-btn {
        font-size: 12px;
        padding: 8px;
        gap: 6px;
    }
    
    .social-btn i {
        font-size: 16px;
    }
    
    .error-message {
        font-size: 11px;
    }
    
    .spinner {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.75rem;
    }
    
    button {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
    
    a {
        font-size: 0.75rem;
    }
}

/* Input Focus Glow Effect */
.form-input:focus {
    animation: inputGlow 0.3s ease-out;
}

@keyframes inputGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    }
}

/* Checkbox Custom Style */
input[type="checkbox"]:checked {
    background-color: #16a34a;
    border-color: #16a34a;
}

/* Link Hover Effect */
a {
    transition: all 0.2s ease;
}

a:hover {
    transform: translateX(2px);
}
