/* Login Forms Styling */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-form .form-control::placeholder {
    color: #9ca3af;
}

.login-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.login-form .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
}

.login-form .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.login-form .btn-outline-secondary {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.login-form .btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.login-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.login-form .spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.login-form .register-option {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-form .register-option .text-muted {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 1rem;
}

.login-form .btn-outline-primary {
    background: white;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.login-form .btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
}

.login-form .alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 1rem;
}

.login-form .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.login-form .alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Validation message styling */
.login-form .validation-message {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Material Icons styling */
.login-form .material-icons {
    font-size: 18px;
    vertical-align: middle;
}

/* Loading state */
.login-form .loading-state {
    text-align: center;
    padding: 2rem;
}

.login-form .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal enhancements */
.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* .modal-card sizing is unified in /css/modal.css */

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title .material-icons {
    color: #3b82f6;
}

.modal-header .btn {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-header .btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 0 2rem 2rem;
}

/* Update Profile Modal specific */
.update-profile-modal .form-group {
    margin-bottom: 1.25rem;
}

.update-profile-modal .form-control {
    padding: 14px 16px;
    font-size: 15px;
}

.update-profile-modal .form-actions {
    margin-top: 2.5rem;
    gap: 1rem;
}

.update-profile-modal .btn {
    padding: 14px 24px;
    font-size: 15px;
}

/* Responsive design */
@media (max-width: 640px) {
    .login-form {
        padding: 1.5rem;
        margin: 1rem;
        max-width: none;
    }
    
    .modal-card {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem 0.75rem;
    }
    
    .modal-body {
        padding: 0 1.5rem 1.5rem;
    }
    
    .login-form .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .login-form .btn {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .login-form .form-control {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .login-form .form-control:focus {
        border-color: #60a5fa;
        background: #4b5563;
    }
    
    .login-form .form-group label {
        color: #e5e7eb;
    }
    
    .modal-card {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .modal-header {
        border-bottom-color: #4b5563;
    }
    
    .modal-title {
        color: #f9fafb;
    }
}