:root {
     --red: #115272;
     --red-dark: #115272;
     --bg: #f0f0f0;
     --form-text: #ffffff;
     --form-subtext: #e0f2ff;
     --form-label: #e0f2ff;
 }

 html,
 body {
     height: 100%;
     margin: 0;
     font-family: "Montserrat", system-ui, -apple-system, Arial, sans-serif;
 }

 body {
     min-height: 100%;
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow-x: hidden;
     background: url('../img/bg_new.png') center center/cover no-repeat fixed;
     background-size: cover;
 }



 /* Centering stage */
 .stage {
     min-height: 50vh;
     min-width: 100%;
     height: 50vh;
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
 }


 .card {
     position: relative;
     width: 100%;
     height: 100%;
     min-height: 400px;
     border-radius: 16px;
     display: flex;
     align-items: stretch;
     justify-content: flex-start;
     transition: height 0.2s, width 0.2s;
 }


 .card::after {
     content: "";
     position: absolute;
     inset: -18px;
     background: transparent;
     z-index: 0;
     filter: blur(28px);
     pointer-events: none;
 }



 /* left area for the brand */
  .brand {
    z-index: 2;
    flex: 0 0 48%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 50px; /* Add this line to move it closer to the left */
}

 /* right area for the form */
 .form-area {
     position: relative;
     z-index: 2;
     flex: 0 0 52%;
     display: flex;
     align-items: center;
     justify-content: flex-start;
     padding: 34px 48px 34px 60px;
     color: var(--form-text);
     width:800px;
     margin-right: -20px;
 }

 /* LGU logo styling */
 .logo-wrap {
     width: 100%;
     max-width: 420px;
 }

 .logo {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 8px;
     text-align: center;
 }

.logo img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.logo .unit {
    font-weight: 900;
    font-size: 62px;
    line-height: 1;
    margin-bottom: 8px;
    white-space: nowrap;
    word-break: keep-all;
    display: inline-block;
    text-align: center;
    background: linear-gradient(
        90deg,
        #0038a8 0%, 
        #0038a8 33%, 
        #ce1126 33%, 
        #ce1126 66%,
        #ffffff 66%, 
        #ffffff 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    padding: 0 5px;
    animation: flagWave 3s ease-in-out infinite;
}

@keyframes flagWave {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 25% 50%;
    }
    50% {
        background-position: 50% 50%;
    }
    75% {
        background-position: 75% 50%;
    }
}
.logo .lgutext {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.28);
}
.logo-small {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #000000;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.22);
    text-align: center;
}

 /* ... existing code ... */

.form-box {
    width: 100%;
    max-width: 380px; /* Increased from 320px */
}

.form-box h3 {
    margin: 0 0 16px; /* Increased from 8px */
    font-size: 38px;
    font-weight: 700;
    color: var(--form-text);
    letter-spacing: 0.4px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.form-box p.sub {
    margin: 0 0 28px; /* Increased from 16px */
    font-size: 20px;
    color: var(--form-subtext);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.form-field {
    margin-bottom: 28px; /* Increased from 20px */
}

label.small {
    display: block;
    color: var(--form-label);
    font-size: 18px;
    margin-bottom: 10px; /* Increased from 6px */
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px; /* Increased from 14px */
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    height: 52px; /* Added fixed height */
}
input::placeholder {
    color: rgba(255, 255, 255, 0.9) !important; /* Changed to white with high opacity */
}
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px; /* Increased from 8px */
    margin-bottom: 32px; /* Increased from 24px */
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--form-label);
    font-size: 13px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.forgot {
    color: #a8d8ff;
    opacity: 0.9;
    font-size: 15px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-login {
    display: block;
    width: 100%;
    max-width: 280px; /* Added max-width */
    margin: 0 auto; /* Center the button */
    padding: 14px 10px;
    border-radius: 6px;
    border: 0;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Update password field wrapper for longer inputs */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input[type="password"],
.password-field-wrapper input[type="text"] {
    padding-right: 50px; /* Slightly increased for the toggle button */
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 2px 6px 16px rgba(0,0,0,0.25);
    background: linear-gradient(180deg, #1a6a9a 0%, #115272 100%);
}

 /* small utility for right-aligned text */
 .right-small {
     text-align: right;
     font-size: 12px;
     color: var(--form-subtext);
     text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
 }

/* Add error message styling for dark background */
.error {
    background: rgba(192, 57, 43, 0.9);
    color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 15px;
    border-left: 3px solid #ff6b6b;
    text-shadow: none;
}

 /* Responsive */
 @media (max-width:1200px) {
     .stage {
         width: 95vw;
         min-width: 95vw;
         padding: 12px;
     }

     .card {
         max-width: 100vw;
         height: 100%;
     }
 }

 @media (max-width:980px) {
     .stage {
         width: 100vw;
         min-width: 100vw;
         padding: 0;
     }

     .card {
         width: 100vw;
         max-width: 100vw;
         height: 100%;
         min-height: 360px;
     }

     .brand {
         flex: 0 0 54%;
         padding-left: 24px;
     }

     .form-area {
         flex: 0 0 46%;
         padding: 34px 24px 34px 36px;
     }
 }

 @media (max-width:760px) {
     .stage {
         min-height: 100vh;
         height: 100vh;
         width: 100vw;
         min-width: 100vw;
         padding: 0;
     }

     .card {
         flex-direction: column;
         height: auto;
         min-height: 0;
         padding: 12px;
     }

     .brand {
         order: 1;
         flex: 1 1 auto;
         padding: 12px 12px 6px 12px;
         justify-content: center;
     }

     .form-area {
         order: 2;
         padding: 18px 12px;
         justify-content: center;
     }

     .big-two {
         font-size: 100px
     }

     .logo .lgutext {
         font-size: 20px
     }
     
     .logo .unit {
        font-size: 26px;
        white-space: nowrap;
        display: inline-block;
        width: auto;
        padding: 0 3px;
        animation: flagWave 3s ease-in-out infinite;
    }
     
     .logo img {
         width: 60px;
     }
 }