 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     min-height: 100vh;
     background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 1rem;
     position: relative;
     font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
     overflow-x: hidden;
 }

 /* Background blurs */
 .bg-blur-1 {
     position: fixed;
     top: 5rem;
     left: 2rem;
     width: 18rem;
     height: 18rem;
     background: #3b82f6;
     border-radius: 50%;
     filter: blur(80px);
     opacity: 0.15;
     pointer-events: none;
     z-index: 0;
 }

 .bg-blur-2 {
     position: fixed;
     bottom: 5rem;
     right: 2rem;
     width: 20rem;
     height: 20rem;
     background: #14b8a6;
     border-radius: 50%;
     filter: blur(80px);
     opacity: 0.15;
     pointer-events: none;
     z-index: 0;
 }

 /* Main card container */
 .login-card {
     position: relative;
     z-index: 1;
     width: 100%;
     max-width: 74rem;
     background: white;
     border-radius: 1.75rem;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.3);
     transition: all 0.2s ease;
 }

 /* Tablet & Desktop: horizontal split */
 @media (min-width: 768px) {
     .login-card {
         flex-direction: row;
     }
 }

 /* LEFT SIDE */
 .login-left {
     width: 100%;
     background: linear-gradient(145deg, #031847 0%, #0b524c 100%);
     padding: 1.75rem 1.5rem;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
 }

 @media (min-width: 576px) {
     .login-left {
         padding: 2rem 2rem;
     }
 }

 @media (min-width: 768px) {
     .login-left {
         width: 50%;
         padding: 2.5rem 2.2rem;
     }
 }

 @media (min-width: 1024px) {
     .login-left {
         padding: 3rem;
     }
 }

 .brand-logo {
     display: flex;
     align-items: center;
     gap: 0.7rem;
     margin-bottom: 1.5rem;
 }

 .logo-icon {
     width: 2.5rem;
     height: 2.5rem;
     background: rgba(255, 255, 255, 0.2);
     backdrop-filter: blur(2px);
     border-radius: 0.85rem;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .brand-name {
     color: white;
     font-size: 1.6rem;
     font-weight: 700;
     letter-spacing: -0.3px;
 }

 .welcome-title {
     color: white;
     font-size: 1.8rem;
     font-weight: 800;
     margin-bottom: 0.75rem;
     line-height: 1.2;
 }

 @media (min-width: 480px) {
     .welcome-title {
         font-size: 2rem;
     }
 }

 @media (min-width: 768px) {
     .welcome-title {
         font-size: 2.4rem;
     }
 }

 .welcome-subtitle {
     color: rgba(255, 255, 255, 0.85);
     font-size: 1rem;
     margin-bottom: 1.5rem;
     line-height: 1.4;
 }

 @media (min-width: 576px) {
     .welcome-subtitle {
         font-size: 1.05rem;
     }
 }

 .features-list {
     display: flex;
     flex-direction: column;
     gap: 0.9rem;
     margin: 0.5rem 0 1rem;
 }

 .feature-item {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     color: rgba(255, 255, 255, 0.92);
     font-size: 0.9rem;
 }

 @media (min-width: 640px) {
     .feature-item {
         font-size: 0.95rem;
     }
 }

 .feature-dot {
     width: 0.4rem;
     height: 0.4rem;
     background: #9cd4ff;
     border-radius: 50%;
     flex-shrink: 0;
 }

 .copyright {
     margin-top: 1.8rem;
     color: rgba(255, 255, 255, 0.5);
     font-size: 0.75rem;
 }

 @media (min-width: 768px) {
     .copyright {
         margin-top: 2rem;
         font-size: 0.8rem;
     }
 }

 /* RIGHT SIDE */
 .login-right {
     width: 100%;
     background: white;
     padding: 1.75rem 1.5rem;
     display: flex;
     align-items: center;
 }

 @media (min-width: 576px) {
     .login-right {
         padding: 2rem 2rem;
     }
 }

 @media (min-width: 768px) {
     .login-right {
         width: 50%;
         padding: 2.5rem 2.2rem;
     }
 }

 @media (min-width: 1024px) {
     .login-right {
         padding: 3rem;
     }
 }

 .form-wrapper {
     width: 100%;
     max-width: 28rem;
     margin: 0 auto;
 }

 .form-header {
     text-align: center;
     margin-bottom: 1.75rem;
 }

 .form-header h2 {
     font-size: 1.8rem;
     font-weight: 700;
     color: #0b2b3b;
     margin-bottom: 0.35rem;
 }

 @media (max-width: 480px) {
     .form-header h2 {
         font-size: 1.6rem;
     }
 }

 .form-header p {
     color: #5f6c80;
     font-size: 0.9rem;
 }

 /* Form controls */
 .input-group-text {
     background: white;
     border-right: none;
     color: #8f9bb3;
     padding: 0.7rem 0.9rem;
 }

 .input-group .form-control {
     border-left: none;
     padding: 0.7rem 0.9rem;
     font-size: 0.95rem;
 }

 .form-control:focus {
     border-color: #3b82f6;
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
 }

 .input-group:focus-within .input-group-text {
     border-color: #3b82f6;
 }

 .btn-password-toggle {
     background: white;
     border: 1px solid #dee2e6;
     border-left: none;
     color: #8f9bb3;
     padding: 0 0.9rem;
     cursor: pointer;
     border-radius: 0 0.5rem 0.5rem 0;
     transition: color 0.2s;
 }

 .btn-password-toggle:hover {
     color: #1e293b;
     background-color: #f8fafc;
 }

 .form-label {
     color: #1e2a3e;
     font-size: 0.85rem;
     font-weight: 600;
     margin-bottom: 0.3rem;
 }

 .form-check-input:checked {
     background-color: #0b524c;
     border-color: #0b524c;
 }

 .form-check-label {
     font-size: 0.85rem;
     color: #334155;
 }

 .forgot-link {
     font-size: 0.85rem;
     font-weight: 500;
     color: #2c6e9e;
     text-decoration: none;
 }

 .forgot-link:hover {
     color: #0b3b4f;
     text-decoration: underline;
 }

 .btn-login {
     width: 100%;
     background: linear-gradient(115deg, #031847 0%, #0f6b62 100%);
     color: white;
     padding: 0.75rem 1rem;
     border: none;
     border-radius: 0.75rem;
     font-weight: 600;
     font-size: 0.95rem;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.6rem;
     transition: all 0.25s ease;
     box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.2);
 }

 .btn-login:hover:not(:disabled) {
     transform: translateY(-2px);
     background: linear-gradient(115deg, #02163b, #0d5c54);
     box-shadow: 0 12px 20px -12px rgba(3, 24, 71, 0.4);
 }

 .btn-login:disabled {
     opacity: 0.7;
     cursor: default;
 }

 .alert-error {
     background: #ffe9e9;
     border-left: 4px solid #dc2626;
     color: #b91c1c;
     padding: 0.7rem 1rem;
     border-radius: 0.85rem;
     display: flex;
     align-items: center;
     gap: 0.6rem;
     font-size: 0.85rem;
     margin-bottom: 1.2rem;
 }

 .alert-success {
     background: #e6f7e6;
     border-left: 4px solid #10b981;
     color: #065f46;
     padding: 0.7rem 1rem;
     border-radius: 0.85rem;
     display: flex;
     align-items: center;
     gap: 0.6rem;
     font-size: 0.85rem;
     margin-bottom: 1.2rem;
 }

 .spinner-border-sm {
     width: 1.2rem;
     height: 1.2rem;
     border-width: 2px;
 }

 /* Mobile adjustments */
 @media (max-width: 450px) {
     body {
         padding: 0.8rem;
     }

     .login-left,
     .login-right {
         padding: 1.25rem;
     }

     .welcome-title {
         font-size: 1.6rem;
     }

     .brand-name {
         font-size: 1.4rem;
     }

     .features-list {
         gap: 0.7rem;
     }

     .feature-item {
         font-size: 0.8rem;
     }
 }

 @media (max-width: 380px) {

     .login-left,
     .login-right {
         padding: 1rem;
     }

     .welcome-title {
         font-size: 1.45rem;
     }

     .btn-login {
         font-size: 0.85rem;
         padding: 0.65rem;
     }

     .feature-item span {
         font-size: 0.75rem;
     }

     .brand-name {
         font-size: 1.25rem;
     }
 }