/* Login page extracted styles from resources/views/students/auth/login.blade.php */
.modern-login-container {
    min-height: 100vh;
    /* lighter neutral background for the whole page */
    background: #dce8ff; /* gray-100 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.modern-login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
    min-height: 600px;
}

/* Keep blobs behind; ensure card is above background elements */
.modern-login-container { position: relative; }
.modern-login-container .login-card { position: relative; z-index: 2; }
.bg-blobs { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-blobs .blob-wrap { position: absolute; pointer-events: none; will-change: transform; transition: transform 280ms cubic-bezier(0.2,0.9,0.2,1); }
.bg-blobs .blob { position: absolute; border-radius: 50%; filter: blur(64px) saturate(1.2); opacity: 0.9; transform: translate3d(0,0,0) scale(1); will-change: transform, opacity; }
.bg-blobs .blob.b1 { width: 520px; height: 520px; left: -8%; top: -12%; background: radial-gradient(circle at 25% 25%, rgba(124,58,237,0.65) 0%, rgba(99,102,241,0.40) 36%, rgba(99,102,241,0.18) 100%); animation: floatX 14s ease-in-out infinite; animation-delay: 0s; }
.bg-blobs .blob-wrap:nth-child(1) { left: -8%; top: -12%; }
.bg-blobs .blob.b2 { width: 420px; height: 420px; right: -6%; bottom: -10%; background: radial-gradient(circle at 75% 75%, rgba(236,72,153,0.5) 0%, rgba(236,72,153,0.22) 45%, rgba(236,72,153,0.08) 100%); animation: floatY 18s ease-in-out infinite; animation-delay: 3s; }
.bg-blobs .blob-wrap:nth-child(2) { right: -6%; bottom: -10%; }
.bg-blobs .blob.b3 { width: 320px; height: 320px; right: 18%; top: 18%; background: radial-gradient(circle at 40% 60%, rgba(79,70,229,0.45) 0%, rgba(124,58,237,0.18) 45%, rgba(236,72,153,0.06) 100%); animation: floatXY 12s ease-in-out infinite; animation-delay: 6s; }
.bg-blobs .blob-wrap:nth-child(3) { right: 18%; top: 18%; }

/* Subtle moving gradient overlay */
.modern-login-container::after { content: ''; position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; opacity: 0.75; pointer-events: none; background: linear-gradient(120deg, rgba(67,56,202,0.06) 0%, rgba(236,72,153,0.05) 50%, rgba(99,102,241,0.06) 100%); background-size: 300% 300%; animation: gradientShift 18s linear infinite; }

/* Movement keyframes */
@keyframes floatX { 0% { transform: translate3d(0, 0, 0) scale(1);} 50% { transform: translate3d(24px, -12px, 0) scale(1.02);} 100% { transform: translate3d(0, 0, 0) scale(1);} }
@keyframes floatY { 0% { transform: translate3d(0, 0, 0) scale(1);} 50% { transform: translate3d(-28px, 20px, 0) scale(1.045);} 100% { transform: translate3d(0, 0, 0) scale(1);} }
@keyframes floatXY { 0% { transform: translate3d(0, 0, 0) scale(1);} 50% { transform: translate3d(18px, -20px, 0) scale(1.025);} 100% { transform: translate3d(0, 0, 0) scale(1);} }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* small responsiveness and reduced motion */
@media (max-width: 768px) {
    .bg-blobs .blob.b1 { width: 420px; height: 420px; left: -18%; top: -22%; filter: blur(48px); }
    .bg-blobs .blob.b2 { width: 340px; height: 340px; right: -12%; bottom: -18%; filter: blur(42px); }
    .bg-blobs .blob.b3 { width: 240px; height: 240px; right: 6%; top: 10%; filter: blur(36px); }
}
@media (prefers-reduced-motion: reduce) {
    .bg-blobs .blob, .modern-login-container::after { animation: none !important; transition: none !important; }
}

/* Forgot Password specific styles (shared across auth pages) */
.forgot-password-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden;  }
.forgot-password-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>'); pointer-events: none; }

.auth-card { background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); border-radius: 18px; box-shadow: 0 30px 60px rgba(20, 23, 38, 0.14); border: 1px solid rgba(255,255,255,0.5); overflow: hidden; width: 100%; max-width: 520px; padding: 40px 36px; position: relative; z-index: 2; }
.auth-card.animate { animation: fadeInUp 0.6s cubic-bezier(0.2,0.9,0.2,1) forwards; }
.auth-card .auth-card-header { padding-top: 14px; padding-bottom: 12px; }
.auth-card .form-control { border-radius: 12px; padding: 12px 14px; border: 1px solid #e5e7eb; }
.auth-card .form-control:focus { border-color: #4f46e5; box-shadow: 0 0 0 6px rgba(79,70,229,0.06); }

.auth-card .card-header i { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #fff; padding: 18px; border-radius: 18px; box-shadow: 0 10px 30px rgba(79,70,229,0.18); }
.auth-card .send-reset-btn { border-radius: 12px; padding: 14px 18px; }

/* Entrance staging for auth-card content */
.auth-card .auth-card-header, .auth-card .form-control, .auth-card .send-reset-btn { opacity: 0; transform: translateY(8px); }
.auth-card.animate .auth-card-header { animation: fadeInUp 0.42s both; animation-delay: 0.10s; }
.auth-card.animate .form-control { animation: fadeInUp 0.42s both; animation-delay: 0.18s; }
.auth-card.animate .send-reset-btn { animation: fadeInUp 0.42s both; animation-delay: 0.26s; }

/* Ensure small responsive tweaks and reduced motion respect */
@media (max-width: 576px) {
    .auth-card { margin: 0 12px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-card, .auth-card * { animation: none !important; transition: none !important; transform: none !important; }
}

.login-left {
    flex: 1;
    /* preserve a strong accent panel while contrasting with page background */
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 60%, #ec4899 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    color: white;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="40" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

.brand-section { text-align: center; margin-bottom: 40px; position: relative; z-index: 2; }
.brand-logo { font-size: 3rem; font-weight: 700; margin-bottom: 10px; background: linear-gradient(45deg, #ffffff, #e0e7ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-tagline { font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; }

.feature-list { list-style: none; padding: 0; position: relative; z-index: 2; margin-bottom: 40px; }
.feature-list li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1rem; }
.feature-list li::before { content: '✓'; color: #10b981; font-weight: bold; margin-right: 12px; background: rgba(16, 185, 129, 0.2); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

.enquiry-section { text-align: center; position: relative; z-index: 2; }
.enquiry-btn { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.2); color: white; padding: 14px 30px; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.enquiry-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
.enquiry-btn.active { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-1px); }

.login-right { flex: 1; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; }

/* Enquiry Modal Styles */
.enquiry-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.enquiry-modal.active { opacity: 1; visibility: visible; }
.enquiry-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); pointer-events: none; }
.enquiry-modal-content { background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.95) 50%, rgba(255, 255, 255, 0.98) 100%); backdrop-filter: blur(30px); border-radius: 32px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25), 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.4); max-width: 1000px; width: 92%; max-height: calc(100vh - 80px); position: relative; transform: scale(0.95) translateY(0) rotateX(0deg); transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); padding: 36px 36px 110px 36px; overflow: visible; }
.enquiry-modal-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 25% 25%, rgba(79, 70, 229, 0.03) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.03) 0%, transparent 50%), linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.02) 50%, transparent 51%); background-size: 60px 60px, 80px 80px, 20px 20px; pointer-events: none; z-index: 1; }
.enquiry-modal-content > * { position: relative; z-index: 2; }
.enquiry-modal.active .enquiry-modal-content { transform: scale(1) translateY(0) rotateX(0deg); }
.enquiry-modal-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 32px 32px 0 0; z-index: 2; }
.enquiry-modal-content::after { content: ''; position: absolute; bottom: 120px; left: 50px; right: 50px; height: 1px; background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent); z-index: 1; opacity: 0.6; }
.enquiry-submit-btn-overlay:focus { outline: none; box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4), 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(79, 70, 229, 0.3); }
.enquiry-modal-close { position: absolute; top: 20px; right: 20px; background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1)); border: 2px solid rgba(239, 68, 68, 0.2); color: #dc2626; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1.2rem; z-index: 1001; backdrop-filter: blur(10px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15); }
.enquiry-modal-close:hover { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2)); border-color: rgba(239, 68, 68, 0.4); transform: scale(1.1) rotate(90deg); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.25); }
.enquiry-form-group { margin-bottom: 20px; position: relative; }
.enquiry-form-group:last-child { margin-bottom: 0; }
.enquiry-form-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.enquiry-form-group.full-width { grid-column: span 2; }
.enquiry-form-label { display: block; font-weight: 600; color: #1f2937; margin-bottom: 10px; font-size: 0.95rem; letter-spacing: 0.025em; transition: color 0.3s ease; }
.enquiry-form-input, .enquiry-form-select, .enquiry-form-textarea { width: 100%; padding: 16px 20px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); box-sizing: border-box; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.enquiry-form-input:focus, .enquiry-form-select:focus, .enquiry-form-textarea:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), 0 8px 24px rgba(79, 70, 229, 0.15); transform: translateY(-2px); background: rgba(255, 255, 255, 0.95); }
.enquiry-form-input::placeholder, .enquiry-form-select::placeholder, .enquiry-form-textarea::placeholder { color: #9ca3af; font-style: italic; }
.enquiry-form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.enquiry-submit-btn { width: 100%; padding: 16px 24px; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); margin-top: 20px; }
.enquiry-submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4); }
.enquiry-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.enquiry-submit-btn-overlay { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: auto; min-width: 220px; max-width: 420px; padding: 14px 36px; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%); color: white; border: none; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35), 0 8px 20px rgba(0, 0, 0, 0.12), 0 0 40px rgba(79, 70, 229, 0.18); z-index: 1003; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.95rem; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.08); }
.enquiry-submit-btn-overlay:hover:not(:disabled) { transform: translateX(-50%) translateY(-6px) scale(1.03); box-shadow: 0 18px 44px rgba(79, 70, 229, 0.45), 0 12px 28px rgba(0, 0, 0, 0.18), 0 0 50px rgba(79, 70, 229, 0.25); background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #db2777 100%); }
.enquiry-submit-btn-overlay:active:not(:disabled) { transform: translateX(-50%) translateY(-2px) scale(1.01); box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4), 0 8px 20px rgba(0, 0, 0, 0.12), 0 0 40px rgba(79, 70, 229, 0.2); }
.enquiry-submit-btn-overlay:disabled { opacity: 0.6; cursor: not-allowed; transform: translateX(-50%) scale(0.98); filter: grayscale(50%); }
.back-to-login { position: absolute; top: 20px; left: 20px; background: rgba(79, 70, 229, 0.1); border: 1px solid rgba(79, 70, 229, 0.2); color: #4f46e5; padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.back-to-login:hover { background: rgba(79, 70, 229, 0.2); border-color: rgba(79, 70, 229, 0.4); transform: translateY(-1px); }

.login-header { text-align: center; margin-bottom: 45px; position: relative; z-index: 2; }
.login-title { font-size: 2.8rem; font-weight: 800; color: #1f2937; margin-bottom: 12px; background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.025em; line-height: 1.1; animation: titleGlow 2s ease-in-out infinite alternate; }
.login-subtitle { color: #6b7280; font-size: 1.15rem; margin-bottom: 0; font-weight: 400; line-height: 1.6; max-width: 500px; margin-left: auto; margin-right: auto; }
.enquiry-modal.active .enquiry-modal-content::after { animation: fadeInLine 0.6s ease-out 0.3s both; }
.enquiry-modal.active .enquiry-submit-btn-overlay { animation: slideUpButton 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both; }
@keyframes slideUpButton { from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.9); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }

.form-group { margin-bottom: 25px; position: relative; }
.form-label { display: block; font-weight: 600; color: #374151; margin-bottom: 8px; font-size: 0.95rem; }
.form-input { width: 100%; padding: 16px 20px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1rem; transition: all 0.3s ease; background: #ffffff; box-sizing: border-box; }
.form-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); transform: translateY(-1px); }
.form-input::placeholder { color: #9ca3af; }
.input-group { position: relative; }
.input-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #6b7280; cursor: pointer; transition: color 0.3s ease; }
.input-icon:hover { color: #4f46e5; }
.checkbox-group { display: flex; align-items: center; margin-bottom: 30px; }
.checkbox-input { width: 18px; height: 18px; margin-right: 12px; accent-color: #4f46e5; }
.checkbox-label { color: #6b7280; font-size: 0.95rem; cursor: pointer; }
.btn-primary-modern { width: 100%; padding: 16px 24px; background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); }
.btn-primary-modern:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4); }
.btn-primary-modern:active { transform: translateY(0); }
.btn-primary-modern:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.forgot-password { text-align: center; margin-top: 20px; }
.forgot-password a { color: #4f46e5; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.forgot-password a:hover { color: #7c3aed; text-decoration: underline; }
.alert-modern { padding: 16px 20px; border-radius: 12px; margin-bottom: 25px; border: none; font-weight: 500; }
.alert-danger { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; border-left: 4px solid #dc2626; }
.divider { text-align: center; margin: 30px 0; position: relative; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #e5e7eb, transparent); }
.divider span { background: white; padding: 0 20px; color: #6b7280; font-size: 0.9rem; position: relative; z-index: 1; }

@media (max-width: 768px) {
    .login-card { flex-direction: column; min-height: auto; }
    .login-left, .login-right { padding: 40px 30px; }
    .login-title { font-size: 2rem; }
    .brand-logo { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .modern-login-container { padding: 10px; }
    .login-left, .login-right { padding: 30px 20px; }
    .login-title { font-size: 1.8rem; }
    .brand-logo { font-size: 2rem; }
    .enquiry-modal-content { padding: 30px 20px 110px 20px; margin: 10px; }
    .enquiry-modal-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 1rem; }
}

@media (max-width: 768px) {
    .enquiry-modal-content { padding: 40px 26px 140px 26px; border-radius: 24px; max-width: 95vw; max-height: calc(100vh - 60px); }
    .enquiry-modal-content::after { bottom: 100px; left: 30px; right: 30px; }
    .enquiry-form-container { grid-template-columns: 1fr; gap: 24px; }
    .enquiry-form-group.full-width { grid-column: span 1; }
    .login-title { font-size: 2.4rem; }
    .login-subtitle { font-size: 1.1rem; }
    .enquiry-modal-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.2rem; }
    .enquiry-submit-btn-overlay { bottom: 30px; padding: 20px 45px; font-size: 1rem; min-width: 240px; max-width: 380px; }
}

@media (max-width: 480px) {
    .enquiry-modal-content { padding: 32px 20px 140px 20px; margin: 15px; max-height: calc(100vh - 40px); border-radius: 20px; }
    .enquiry-modal-content::after { bottom: 90px; left: 25px; right: 25px; }
    .login-title { font-size: 2rem; }
    .login-header { margin-bottom: 40px; }
    .enquiry-modal-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1.1rem; }
    .enquiry-submit-btn-overlay { bottom: 25px; padding: 18px 40px; min-width: 220px; max-width: 340px; font-size: 0.95rem; }
}

/* Loading animation */
.loading-dots { display: inline-block; }
.loading-dots::after { content: ''; animation: loading 1.5s infinite; }
@keyframes loading { 0%, 20% { content: ''; } 40% { content: '.'; } 60% { content: '..'; } 80%, 100% { content: '...'; } }

img { width: 100px; height: 100px; border-radius: 16px; object-fit: contain; background: rgba(255, 255, 255); padding: 12px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

/* -----------------------------
     Entrance & Micro Animations
     ----------------------------- */

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 0 rgba(124,58,237,0)); }
    50% { filter: drop-shadow(0 10px 30px rgba(124,58,237,0.08)); }
 100% { filter: drop-shadow(0 18px 48px rgba(124,58,237,0.12)); }
}

/* initial hidden state; JS will add `.animate` to kick things off */
.login-card, .otp-card { opacity: 0; transform: translateY(12px); }
.login-card.animate, .otp-card.animate { animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }

.login-card.animate .login-left { animation: fadeInLeft 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both; animation-delay: 0.06s; }
.login-card.animate .login-right { animation: fadeInRight 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) both; animation-delay: 0.12s; }

.login-card.animate .brand-section { opacity: 0; transform: translateY(8px); animation: fadeInUp 0.55s both; animation-delay: 0.22s; }
.login-card.animate .login-header { opacity: 0; transform: translateY(8px); animation: fadeInUp 0.55s both; animation-delay: 0.28s; }

.login-card.animate .feature-list li { opacity: 0; transform: translateY(6px); }
.login-card.animate .feature-list li:nth-child(1) { animation: fadeInUp 0.48s both; animation-delay: 0.30s; }
.login-card.animate .feature-list li:nth-child(2) { animation: fadeInUp 0.48s both; animation-delay: 0.36s; }
.login-card.animate .feature-list li:nth-child(3) { animation: fadeInUp 0.48s both; animation-delay: 0.42s; }
.login-card.animate .feature-list li:nth-child(4) { animation: fadeInUp 0.48s both; animation-delay: 0.48s; }
.login-card.animate .feature-list li:nth-child(5) { animation: fadeInUp 0.48s both; animation-delay: 0.54s; }

.login-card.animate .form-group { opacity: 0; transform: translateY(8px); animation: fadeInUp 0.46s both; animation-delay: 0.34s; }
.login-card.animate .form-group:nth-of-type(2) { animation-delay: 0.40s; }
.login-card.animate .form-group:nth-of-type(3) { animation-delay: 0.46s; }

/* subtle micro-interactions */
.form-input:focus { transform: translateY(-3px); }
.enquiry-btn:active, .btn-primary-modern:active { transform: translateY(0) scale(0.995); }

/* give title a slow ambient glow */
.login-title { animation: titleGlow 3.6s ease-in-out infinite alternate; }

/* reduce flash on mobile when animating */
@media (prefers-reduced-motion: reduce) {
    .login-card, .login-card.animate, .login-card * { animation: none !important; transition: none !important; transform: none !important; }
}
