 :root {
     --red: #115272;
     --red-dark: #115272;
     --bg: #f0f0f0;
 }

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

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

 /* Centering stage */
 .stage {
     min-height: 75vh;
     min-width: 75vw;
     height: 75vh;
     width: 75vw;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 32px;
     box-sizing: border-box;
     max-width: 100vw;
     max-height: 100vh;
     margin: auto;
     border-radius: 32px;
 }


 .card {
     position: relative;
     width: 100%;
     max-width: 1080px;
     height: 100%;
     min-height: 400px;
     border-radius: 16px;
     overflow: hidden;
     box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
     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 {
     position: relative;
     z-index: 2;
     flex: 0 0 48%;
     display: flex;
     align-items: center;
     justify-content: flex-end;
     padding-left: 48px;
     padding-right: 0;
 }

 /* 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: #fff;
 }

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

 .logo {
     display: flex;
     align-items: flex-end;
     gap: 14px;
     justify-content: flex-end;
 }

.logo .lgutext {
    font-weight: 800;
    font-size: 64px;
    letter-spacing: 1px;
    color: var(--red);
    line-height: 1;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.28);
}

.logo .unit {
    font-weight: 800;
    font-size: 64px;
    color: #111;
    line-height: 1;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.28);
}

.logo-small {
    display: block;
    margin-top: -6px;
    font-size: 12px;
    color: #6b6b6b;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.22);
}

 /* Big red '2' to the right, overlapping */
.big-two {
    font-weight: 900;
    font-size: 160px;
    color: var(--red);
    transform: translateX(-6px);
    line-height: 0.85;
    margin-top: 6px;
    opacity: 0.95;
    margin-left: 10px;
    text-shadow: 4px 8px 16px rgba(0,0,0,0.32);
}

 /* Form card content (right side) */
 .form-box {
     width: 100%;
     max-width: 320px;
 }

.form-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.4px;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.22);
}

.form-box p.sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
}
.form-field {
    position: relative;
    width: 100%;
}

.form-field input[type="password"] {
    width: 100%;
    padding: 10px 40px 10px 12px; /* right padding for the eye */
    box-sizing: border-box;
    border-radius: 6px;
    border: 0;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
    box-shadow: 2px 4px 8px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.toggle-password {
    position: absolute;
    top: 65%;                /* vertical center */
    right: 12px;             /* space from the right edge */
    transform: translateY(-50%); /* truly center vertically */
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
    cursor: pointer;         /* show it's clickable */
    user-select: none;
    pointer-events: auto;
}




label.small {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 600;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
}

input[type="text"],
input[type="password"] {
    width: 94.5%;
    padding: 10px 10px 10px 10px;
    border-radius: 6px;
    border: 0;
    font-size: 14px;
    outline: none;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
}

 input::placeholder {
     color: rgba(255, 255, 255, 0.7);
 }

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 18px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
}

 .remember input {
     transform: scale(1.05);
 }

.forgot {
    color: #fff;
    opacity: 0.9;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
}

.btn-login {
    display: block;
    width: 100%;
    padding: 10px 10px;
    border-radius: 6px;
    border: 0;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.22);
    text-shadow: 1px 2px 4px rgba(0,0,0,0.18);
}

 /* small utility for right-aligned text */
 .right-small {
     text-align: right;
     font-size: 12px;
     color: rgba(255, 255, 255, 0.9)
 }

 /* 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;
     }

     /* Adapt .card::before for column layout: diagonal from top right to lower left */
     .card::before {
         width: 100%;
         height: 60%;
         left: 0;
         right: 0;
         top: 0;
         bottom: auto;
         background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
         clip-path: polygon(100% 0, 100% 60%, 0 100%, 0 0);
     }

     .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: 36px
     }
 }