/* Enhanced Login Page Styles with Dark Mode Support */ /* Auth Hero Background */ .auth-hero { background: var(--background-color); min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; transition: background-color 0.3s ease; } /* Animated background elements */ .auth-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.06) 0%, transparent 50%); animation: authFloat 20s ease-in-out infinite; } [data-theme="dark"] .auth-hero::before { background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%), radial-gradient(circle at 70% 30%, rgba(34, 197, 94, 0.12) 0%, transparent 50%); } @keyframes authFloat { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-10px) rotate(1deg); } } .auth-container { position: relative; z-index: 2; width: 100%; } /* Enhanced Auth Card */ .auth-card { background: var(--card-bg); backdrop-filter: blur(20px); border-radius: 24px; box-shadow: var(--shadow-xl); max-width: 450px; width: 100%; border: 1px solid var(--border-color); overflow: hidden; transition: all 0.3s ease; margin: 2rem auto; } [data-theme="dark"] .auth-card { background: rgba(15, 23, 42, 0.95); border: 1px solid var(--border-color-dark); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05); } /* Modern Header Design */ .auth-header { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); color: white; padding: 3rem 2rem 2rem; text-align: center; position: relative; } .auth-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)); } .auth-header-content { position: relative; z-index: 1; } .auth-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.5px; } .auth-subtitle { font-size: 1rem; opacity: 0.9; margin-bottom: 0; font-weight: 400; } /* Enhanced Form Body */ .auth-body { padding: 3rem; background: var(--card-bg); color: var(--text-primary); } /* Floating Form Fields */ .form-floating { margin-bottom: 1.5rem; position: relative; } .form-floating label { color: var(--text-secondary); font-weight: 500; transition: color 0.3s ease; } .form-control { background: var(--input-bg); border: 2px solid var(--border-color); border-radius: 12px; color: var(--text-primary); padding: 1rem 1.25rem; font-size: 1rem; transition: all 0.3s ease; font-weight: 500; } .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); outline: none; background: var(--card-bg); transform: translateY(-2px); } .form-control::placeholder { color: var(--text-muted); font-weight: 400; } /* Enhanced Checkbox */ .form-check { margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; } .form-check-input { width: 1.25rem; height: 1.25rem; border: 2px solid var(--border-color); border-radius: 6px; background: var(--input-bg); transition: all 0.3s ease; position: relative; margin: 0; } .form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); } .form-check-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); } .form-check-label { color: var(--text-primary); font-weight: 500; font-size: 0.95rem; cursor: pointer; user-select: none; } /* Enhanced Auth Button */ .btn-auth { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); border: none; color: white; font-weight: 600; padding: 1rem 2rem; border-radius: 12px; width: 100%; font-size: 1rem; transition: all 0.3s ease; position: relative; overflow: hidden; letter-spacing: 0.5px; margin-bottom: 1rem; } .btn-auth::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.6s ease; } .btn-auth:hover::before { left: 100%; } .btn-auth:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4); background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%); } .btn-auth:active { transform: translateY(-1px); } /* Modern Divider */ .divider { position: relative; text-align: center; margin: 2.5rem 0; } .divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-color); } .divider span { background: var(--card-bg); padding: 0 1.5rem; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; } /* Enhanced Auth Links */ .auth-links { text-align: center; line-height: 1.8; } .auth-link { color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; padding: 0.25rem 0; } .auth-link:hover { color: var(--primary-dark); text-decoration: none; transform: translateY(-1px); } .auth-link i { font-size: 0.875rem; transition: transform 0.3s ease; } .auth-link:hover i { transform: translateX(2px); } /* Enhanced Alerts */ .alert { border-radius: 12px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); box-shadow: var(--shadow-sm); margin-bottom: 2rem; padding: 1rem 1.25rem; } .alert-danger { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #dc2626; } [data-theme="dark"] .alert-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; } /* Form Validation */ .invalid-feedback { color: #dc2626; font-size: 0.875rem; margin-top: 0.5rem; font-weight: 500; } [data-theme="dark"] .invalid-feedback { color: #fca5a5; } .form-control.is-invalid { border-color: #dc2626; background: rgba(239, 68, 68, 0.05); } .form-control.is-invalid:focus { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); background: var(--card-bg); } [data-theme="dark"] .form-control.is-invalid { background: rgba(239, 68, 68, 0.1); } /* Loading State */ .btn-auth:disabled { opacity: 0.7; cursor: not-allowed; transform: none; } .btn-auth .spinner-border { width: 1rem; height: 1rem; margin-right: 0.5rem; } /* Focus Indicators for Accessibility */ .form-control:focus-visible, .form-check-input:focus-visible, .btn-auth:focus-visible, .auth-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; } /* Enhanced Responsive Design */ @media (max-width: 768px) { .auth-hero { padding: 1rem; } .auth-card { margin: 1rem; max-width: none; border-radius: 20px; } .auth-header { padding: 2.5rem 1.5rem 1.5rem; } .auth-title { font-size: 1.75rem; } .auth-subtitle { font-size: 0.95rem; } .auth-body { padding: 2rem 1.5rem; } .form-floating { margin-bottom: 1.25rem; } .btn-auth { padding: 0.875rem 2rem; font-size: 1rem; } } @media (max-width: 480px) { .auth-card { margin: 0.5rem; border-radius: 16px; } .auth-header { padding: 2rem 1rem 1rem; } .auth-title { font-size: 1.5rem; } .auth-body { padding: 1.5rem 1rem; } .form-control { padding: 0.875rem 1rem; } } /* Animation Enhancements */ .auth-card { animation: slideUp 0.6s ease-out; } @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* Hover Effects for Interactive Elements */ .form-floating:hover .form-control { border-color: var(--primary-color); } .form-check:hover .form-check-input { border-color: var(--primary-color); } /* Enhanced Visual Hierarchy */ .auth-links > span { color: var(--text-secondary); font-size: 0.875rem; margin-right: 0.5rem; } .auth-links > br { line-height: 2.5; } /* Dark mode specific enhancements */ [data-theme="dark"] .form-control { background: rgba(15, 23, 42, 0.8); } [data-theme="dark"] .form-control:focus { background: var(--card-bg); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); } [data-theme="dark"] .btn-auth:hover { box-shadow: 0 15px 35px rgba(34, 197, 94, 0.3); }