 :root {
     --primary: #013A70;
     --secondary: #15989C;
     --text-muted: #65737E;
     --border-light: #DAE9F4;
 }

 main {
     background: #F2F6FB;

     overflow-x: hidden;
 }

 /* SEO/Accessibility visually hidden class (replaces display:none) */
 .sr-only {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     white-space: nowrap;
     border: 0;
 }

 /* =========================================
           MAIN LAYOUT (FLEXBOX FIX)
        ========================================= */
 .wrapper {
     position: relative;
     width: 100%;
     /* min-height: 100vh; */
     min-height: calc(100vh - 100px);
     overflow-x: hidden;
     display: flex;
 }

 @media (min-width: 769px) {
     .wrapper {
         display: flex;
         align-items: stretch;
     }

     .image-container {
         width: 40%;
         position: relative;
         z-index: 5;
         transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
     }

     .form-container {
         width: 60%;
         position: relative;
         z-index: 1;
         transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
     }

     .wrapper.register-mode .image-container {
         transform: translateX(150%);
     }

     .wrapper.register-mode .form-container {
         transform: translateX(-66.6666%);
     }
 }

 /* LEFT: IMAGE CONTAINER */
 .image-container {
     position: relative;
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     padding: 60px;
     color: #fff;
     overflow: hidden;
     /* Required for the absolute SEO image */
     background-color: var(--primary);
     /* Fallback */
 }

 /* Semantic Background Image for SEO */
 .seo-bg-img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: top center;
     z-index: 0;
     transition: opacity 0.4s ease;
 }

 .image-container::before {
     content: "";
     position: absolute;
     inset: 0;
     background: linear-gradient(0deg, rgba(1, 58, 112, 0.95) 0%, rgba(1, 58, 112, 0.3) 60%, transparent 100%);
     z-index: 1;
 }

 .info-content {
     position: relative;
     z-index: 2;
     transition: opacity 0.3s ease;
 }

 .info-content h1 {
     font-size: 36px;
     line-height: 1.15;
     font-weight: 700;
     margin-bottom: 15px;
 }

 .input-content-desc {
     margin-bottom: 40px;
 }

 .info-content h1 span {
     color: #2EE0E6;
 }

 .info-content p {
     font-size: 17px;
     color: #DAE9F4;
     line-height: 1.6;
     max-width: 90%;
 }

 /* STATS */
 .stats {
     display: flex;
     flex-direction: row !important;
     justify-content: space-between;
     align-items: center;
     background: rgba(255, 255, 255, 0.08);
     border: 1px solid rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(11px);
     -webkit-backdrop-filter: blur(12px);
     border-radius: 16px;
     padding: 24px;
     width: 100%;
 }

 .stat {
     text-align: center;
     flex: 1;
 }

 .stat h3 {
     font-size: clamp(14px, 2vw, 20px);
     font-weight: 700;
 }

 .stat p {
     font-size: clamp(8px, 1vw, 14px);
     letter-spacing: 1.5px;
     margin-top: 4px;
     color: #DAE9F4;
     text-transform: uppercase;
     justify-self: center;
 }

 .divider {
     width: 1px;
     height: 40px;
     background: rgba(255, 255, 255, 0.25);
 }

 /* RIGHT: FORM CONTAINER */
 .form-container {
     background: #013a7008;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 80px 40px;
 }

 .form-box {
     width: 100%;
     max-width: 420px;
     transition: opacity 0.3s ease, max-width 0.3s ease;
 }

 .wrapper.register-mode .form-box {
     max-width: 540px;
 }

 /* TOP TOGGLE BUTTON */
 .toggle-btn {
     position: absolute;
     top: 40px;
     left: 40px;
     color: var(--text-muted);
     text-decoration: none;
     font-weight: 600;
     font-size: 15px;
     display: flex;
     align-items: center;
     gap: 6px;
     transition: color 0.3s ease;
     z-index: 10;
 }

 .toggle-btn:hover {
     color: var(--primary);
 }

 .wrapper.register-mode .toggle-btn {
     left: auto;
     right: 40px;
 }

 .arrow-right {
     display: none;
 }

 .wrapper.register-mode .arrow-left {
     display: none;
 }

 .wrapper.register-mode .arrow-right {
     display: inline;
 }

 /* Form Typography & Inputs */
 .form-box h2 {
     font-size: 34px;
     color: var(--primary);
     font-weight: 800;
     line-height: 1.1;
 }

 .subtitle {
     margin: 12px 0 30px;
     color: var(--text-muted);
     font-size: 15px;
     line-height: 1.5;
 }

 .form-group {
     margin-bottom: 20px;
 }

 .form-row {
     display: flex;
     gap: 16px;
     width: 100%;
 }

 .form-row .form-group {
     flex: 1;
     margin-bottom: 20px;
 }

 label {
     font-weight: 700;
     display: block;
     margin-bottom: 8px;
     font-size: 13px;
     color: #1A202C;
 }

 .input-wrapper {
     position: relative;
     display: flex;
     align-items: center;
 }

 .input-wrapper i {
     position: absolute;
     left: 16px;
     color: #A0AEC0;
     font-size: 14px;
     z-index: 2;
 }

 input {
     width: 100%;
     padding: 14px 16px 14px 44px;
     border: 2px solid var(--border-light);
     border-radius: 6px;
     font-size: 14px;
     outline: none;
     transition: all 0.3s ease;
     background: #013a7008;
     color: #1A202C;
 }

 input::placeholder {
     color: #A0AEC0;
     font-weight: 400;
 }

 input:focus {
     border-color: var(--secondary);
     box-shadow: 0 0 0 3px rgba(21, 152, 156, 0.1);
 }

 .password-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 8px;
 }

 .password-row label {
     margin-bottom: 0;
 }

 .password-row a {
     font-size: 13px;
     color: var(--secondary);
     text-decoration: none;
     font-weight: 700;
 }

 button.submit-btn {
     width: 100%;
     padding: 14px;
     border: none;
     border-radius: 30px;
     background: var(--primary);
     color: #fff;
     font-size: 15px;
     font-weight: 700;
     margin-top: 10px;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 button.submit-btn:hover {
     background: #012a52;
     transform: translateY(-1px);
 }

 /* BOTTOM INLINE LINKS */
 .bottom-toggle-text {
     text-align: center;
     margin-top: 20px;
     font-size: 14px;
     color: var(--text-muted);
     border-bottom: 1px solid var(--border-light);
     padding-bottom: 25px;
 }

 .bottom-toggle-text a {
     color: var(--secondary);
     font-weight: 700;
     text-decoration: none;
     margin-left: 4px;
 }

 .bottom-toggle-text a:hover {
     text-decoration: underline;
 }

 .footer {
     text-align: center;
     margin-top: 25px;
 }

 .footer span {
     margin: 0 10px;
     font-size: 11px;
     letter-spacing: 1px;
     color: #8C9BA5;
     font-weight: 700;
     cursor: pointer;
 }

 .hidden {
     display: none;
 }

 /* =========================================
           RESPONSIVE DESIGN (Mobile Stack)
        ========================================= */
 @media (max-width: 1023px) {
     .image-container {
         padding: 40px;
     }

     .info-content h1 {
         font-size: 38px;
     }

     .form-container {
         padding: 80px 30px;
     }

     .form-row {
         flex-direction: column;
         gap: 0;
     }
 }

 @media (max-width: 768px) {

     .wrapper,
     .wrapper.register-mode {
         flex-direction: column;
         padding: 40px 20px;
         position: relative;
         justify-content: center;
     }

     .wrapper::before {
         content: "";
         position: absolute;
         inset: 0;
         background: rgba(1, 30, 58, 0.85);
         z-index: 1;
         /* Pushed above the absolute image */
     }

     .image-container,
     .info-content,
     .form-container {
         display: contents;
         /* Flattens DOM for mobile stacking */
     }

     .image-container::before {
         display: none;
     }

     .info-content h1 {
         order: 1;
         position: relative;
         z-index: 2;
         text-align: center;
         font-size: 32px;
         margin-bottom: 20px;
         color: #ffffff;
     }

     .input-content-desc {
         display: none;
     }

     .form-box {
         order: 2;
         position: relative;
         z-index: 2;
         padding: 60px 24px 30px;
         border-radius: 20px;
         width: 100%;
         max-width: 500px;
         margin: 0 auto;
         background: rgba(11, 44, 64, 0.35);
         backdrop-filter: blur(15px);
         -webkit-backdrop-filter: blur(15px);
     }

     .form-box h2 {
         color: #ffffff;
         text-align: center;
         font-size: 28px;
     }

     .subtitle {
         color: #9DB6DB;
         text-align: center;
     }

     label {
         color: #DAE9F4;
     }

     input {
         background: #143D59;
         border-color: rgba(255, 255, 255, 0.1);
         color: #ffffff;
     }

     input:focus {
         background: #194A6E;
     }

     .input-wrapper i {
         color: #7A9EBB;
     }

     .bottom-toggle-text {
         border-bottom-color: rgba(255, 255, 255, 0.1);
     }

     .footer span {
         color: #65737E;
     }

     .toggle-btn {
         top: 20px;
         left: 20px;
         right: auto;
         color: #2EE0E6;
     }

     .wrapper.register-mode .toggle-btn {
         left: 20px;
         right: auto;
     }

     .arrow-left,
     .wrapper.register-mode .arrow-left {
         display: inline !important;
     }

     .arrow-right,
     .wrapper.register-mode .arrow-right {
         display: none !important;
     }

     .stats {
         order: 3;
         position: relative;
         z-index: 2;
         width: 100%;
         max-width: 500px;
         margin: 25px auto 0;
         padding: 16px;
     }
 }

 @media (max-width: 480px) {
     .form-box {
         width: 100%;
     }

     .wrapper {
         padding: 30px 15px;
     }

     .info-content h1 {
         font-size: 20px;
     }

     .form-box h2 {
         font-size: 24px;
     }

     .subtitle {
         font-size: 12px;
     }

     .stat h3 {
         font-size: clamp(16px, 3vw, 18px);
     }

     .stat p {
         font-size: clamp(8px, 2.5vw, 12px);
         letter-spacing: 1px;
     }

     .divider {
         height: 30px;
     }
     
 }

 /* Password Toggle Icon */
 .toggle-password {
     position: absolute;
     right: 16px;
     left: auto !important;
     /* Overrides the left: 16px from the general i tag */
     cursor: pointer;
     color: #A0AEC0;
     transition: color 0.3s ease;
     z-index: 5;
 }

 .toggle-password:hover {
     color: var(--secondary);
 }

 /* Validation Styles */
 .error-msg {
     color: #E53E3E;
     font-size: 12px;
     margin-top: 6px;
     font-weight: 500;
     display: none;
 }

 .error-msg.show {
     display: block;
 }

 .success-msg {
     color: #38A169;
 }

 input.error-border {
     border-color: #E53E3E !important;
 }

 input.success-border {
     border-color: #38A169 !important;
 }

 /* Modal Styles */
 .modal-overlay {
     position: fixed;
     inset: 0;
     background: rgba(1, 58, 112, 0.6);
     backdrop-filter: blur(5px);
     -webkit-backdrop-filter: blur(5px);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 100000;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
 }

 .modal-overlay.active {
     opacity: 1;
     visibility: visible;
 }

 .modal-box {
     background: #fff;
     width: 100%;
     max-width: 400px;
     padding: 40px;
     border-radius: 16px;
     position: relative;
     transform: translateY(20px);
     transition: transform 0.3s ease;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
 }

 .modal-overlay.active .modal-box {
     transform: translateY(0);
 }

 .modal-box h2 {
     color: var(--primary);
     font-size: 24px;
     margin-bottom: 10px;
 }

 .modal-box p {
     color: var(--text-muted);
     font-size: 14px;
     margin-bottom: 25px;
     line-height: 1.5;
 }

 .close-modal {
     position: absolute;
     top: 20px;
     right: 20px;
     background: none;
     border: none;
     font-size: 24px;
     color: #A0AEC0;
     cursor: pointer;
     transition: color 0.3s ease;
 }

 .close-modal:hover {
     color: var(--primary);
 }
 .modal-box label{
    color: #013A70;
 }

 .modal-box input {
     background: #ffff;
     border-color: rgba(84, 86, 88, 0.359);
     color: #013A70;
 }
 @media (max-width: 480px) {
.modal-box {
   
     width: 90%;
     
    
 }
 }
  