/* Modern Login Form Styles */

/* Full page background with gradient */
.modern-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f0f4ff 100%);
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Account for fixed navbar */
}

/* Main container for the login form */
.modern-login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* Modern card styling */
.modern-login-card {
    width: 100%;
    max-width: 28rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Card header */
.modern-login-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.modern-login-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modern-login-icon i {
    color: white;
    font-size: 1.5rem;
}

.modern-login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.modern-login-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Card content */
.modern-login-content {
    padding: 0 2rem 2rem;
}

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

.modern-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Input container for icons */
.modern-input-container {
    position: relative;
}

.modern-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    z-index: 2;
}

.modern-form-input {
    width: 100%;
    height: 3rem;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    background-color: white;
}

.modern-form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Password input with toggle */
.modern-password-container {
    position: relative;
}

.modern-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.2s ease-in-out;
}

.modern-password-toggle:hover {
    color: #6b7280;
}

/* Remember me and forgot password row */
.modern-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modern-checkbox-container {
    display: flex;
    align-items: center;
}

.modern-checkbox {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: #2563eb;
}

.modern-checkbox-label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.modern-forgot-link {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.modern-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Submit button */
.modern-submit-btn {
    width: 100%;
    height: 3rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: 1.5rem;
}

.modern-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.modern-submit-btn:active {
    transform: translateY(0);
}

/* Divider */
.modern-divider {
    position: relative;
    margin: 1.5rem 0;
}

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

.modern-divider-text {
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

/* Social buttons */
.modern-social-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modern-social-btn {
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: transparent;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.modern-social-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}

.modern-social-btn svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Footer */
.modern-login-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

.modern-signup-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.modern-signup-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.modern-signup-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Error messages styling */
.modern-error-messages {
    margin-bottom: 1rem;
}

.modern-error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.modern-success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 640px) {
    .modern-login-container {
        padding: 1rem;
    }
    
    .modern-login-card {
        max-width: 100%;
    }
    
    .modern-login-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modern-login-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .modern-login-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .modern-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .modern-social-container {
        grid-template-columns: 1fr;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.modern-form-input:focus,
.modern-submit-btn:focus,
.modern-social-btn:focus,
.modern-password-toggle:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Loading state for submit button */
.modern-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modern-submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}
