*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.fullbg {
    min-height: calc(100vh - 110px);
    width: 100%;
    background-image: url("../IMAGES/background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* NAVBAR */

.topnav{
    background:#3f51b5;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 60px;

    position: sticky;
    top: 0;
    z-index: 1000;
}


/* LEFT LOGO AREA */
.logo-area{
    display:flex;
    align-items:center;
    gap: 15px;
}

.logo1{
    height:80px;
    width:auto;
}

.logo2{
    height:80px;
    width:135px;
}

.title{
    color:white;
    font-weight:bold;
    font-size:18px;
}

/* SECTION */
.topp {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 110px);
    padding: 50px 20px;
    gap: 50px;
}

/* LOGO LEFT */

.top-logo img{
    width:380px;
    

    transform-style: preserve-3d;
}

/* FORM */

.login-form{
    width:620px;
    background: rgba(180,190,230,0.85);
    padding:45px 40px;
    border-radius:30px;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    justify-content: center;
}

.login-form h2{
    text-align:center;
    font-size:36px;
    margin-bottom:30px;
    color:#000;
    letter-spacing:2px;
}

/* FORM */

.login-form form{
    display:flex;
    flex-direction:column;
    width:100%;
}

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:20px;
    width:100%;
}

.form-group label{
    font-weight:bold;
    margin-bottom:6px;
    color:#000;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:14px;
    border:2px solid black;
    background:#e6e6e6;
    font-size:16px;
    border-radius:8px;
    outline:none;
}

/* BACK BUTTON */

.back-btn{
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #e0e4f5;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid #0b3a67;
    border-radius: 8px;
    background-color: #3a4db8;
    transition: all 0.3s ease;
}

.back-btn:hover{
    color: #3a4db8;
    background-color: #e0e4f5;
    border-color: #0b3a67;
}

/* BUTTON */

.login-form button{
    width:220px;
    padding:15px;
    border:none;
    border-radius:35px;
    background:#0b3a67;
    color:white;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
    align-self:center;
}

.login-form button:hover{
    background:#072a4a;
}

.registration-terms-dialog{
    width:min(760px, calc(100% - 32px));
    max-height:calc(100vh - 32px);
    margin:auto;
    padding:0;
    border:1px solid var(--bms-border, #c5d5e8);
    border-radius:16px;
    background:linear-gradient(
        140deg,
        var(--bms-panel-start, #ffffff),
        var(--bms-panel-end, #f3f7ff)
    );
    color:var(--bms-text, #26324a);
    box-shadow:var(--bms-shadow, 0 16px 45px rgba(0,0,0,0.35));
}

.registration-terms-dialog::backdrop{
    background:rgba(0,0,0,0.65);
}

.registration-terms-content{
    max-height:calc(100vh - 220px);
    overflow-y:auto;
    padding:28px 32px;
    background:var(--bms-panel-start, #ffffff);
    color:var(--bms-text, #26324a);
    line-height:1.55;
}

.registration-terms-content h2,
.registration-terms-content h3{
    color:var(--bms-text, #0b3a67);
}

.registration-terms-content h2{
    margin-bottom:12px;
}

.registration-terms-content h3{
    margin:22px 0 8px;
}

.registration-policy-frame{
    display:block;
    width:100%;
    min-height:420px;
    border:1px solid var(--bms-border, #c6cbd3);
    border-radius:8px;
    background:var(--bms-panel-start, #fff);
}

.registration-terms-summary{
    margin-top:22px;
    font-weight:bold;
}

.registration-terms-actions{
    padding:18px 32px 24px;
    border-top:1px solid var(--bms-border, #d6d9de);
    background:linear-gradient(
        140deg,
        var(--bms-panel-start, #f7f8fa),
        var(--bms-panel-end, #eef2f8)
    );
    color:var(--bms-text, #26324a);
}

.registration-terms-consent{
    display:flex;
    align-items:flex-start;
    gap:10px;
    line-height:1.45;
    color:var(--bms-text, #26324a);
}

.registration-terms-consent input{
    flex:0 0 auto;
    width:18px;
    height:18px;
    margin-top:2px;
    accent-color:var(--bms-nav-active, #3478c8);
}

.registration-terms-buttons{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:18px;
}

.registration-terms-buttons button{
    width:auto;
    padding:11px 20px;
    font-size:16px;
    background:var(--bms-footer-title, #0b3a67);
    color:#fff;
}

.registration-terms-buttons button:hover{
    filter:brightness(0.9);
}

.registration-terms-buttons #confirmTermsBtn:disabled{
    background:var(--bms-muted-text, #667085);
    color:var(--bms-panel-start, #fff);
    cursor:not-allowed;
}

.registration-terms-buttons #confirmTermsBtn:disabled:hover{
    background:var(--bms-muted-text, #667085);
    filter:none;
}

.form-links{
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-top:10px;
    margin-bottom:20px;
}

.form-links a{
    text-decoration:none;
    color:#0b3a67;
    font-weight:bold;
    margin:4px 0;
}

.form-links a:hover{
    color:#3a4db8;
}

/* POPUP BOX */

.popup-box{
    background:white;
    padding:35px 40px;
    border-radius:12px;
    width:380px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    animation: popupFade 0.3s ease;
}

.popup-box h3{
    margin-bottom:15px;
    color:#0b3a67;
}

.popup-box p{
    font-size:15px;
    margin-bottom:25px;
    line-height:1.5;
}

/* BUTTON */

.popup-box button{
    padding:10px 25px;
    border:none;
    border-radius:20px;
    background:#3f51b5;
    color:white;
    font-weight:bold;
    cursor:pointer;
}

.popup-box button:hover{
    background:#2f3ea8;
}

/* ANIMATION */

@keyframes popupFade{
    from{
        transform:scale(0.9);
        opacity:0;
    }

    @media (max-width:600px){
        .registration-terms-content{
            max-height:calc(100vh - 245px);
            padding:22px 18px;
        }

        .registration-terms-actions{
            padding:16px 18px 20px;
        }

        .registration-terms-buttons{
            justify-content:stretch;
        }

        .registration-terms-buttons button{
            flex:1;
            padding:11px 12px;
        }
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* TOAST ERROR MESSAGE */
.toast{
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #d9534f;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 90%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.toast.show{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon{
    font-size: 18px;
    line-height: 1;
}

.toast-close{
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
}

.toast-close:hover{
    opacity: 0.8;
}

/* REGISTER HOLD POPUP */
.popup-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-overlay.show{
    display: flex;
}

.register-hold-popup{
    width: 420px;
    max-width: 90%;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.register-hold-popup h3{
    margin-bottom: 15px;
    font-size: 26px;
    color: #123d74;
}

.register-hold-popup p{
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

.register-hold-popup button{
    margin-top: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: #123d74;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.register-hold-popup button:hover{
    background: #0d2f59;
}

/* HIDING THE DEPARTMENT OPTION */
.form-group.department-group {
    display: none;
}

/* FILE UPLOAD AND ID NUMBER */
.form-group input[type="file"] {
    padding: 10px;
    border: 2px solid black;
    background: #e6e6e6;
    border-radius: 8px;
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    padding: 8px 15px;
    border: none;
    background-color: #0b3a67;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #072a4a;
}



/* --- INPUT WRAPPER FOR EYE ICON --- */
.input-wrapper {
    position: relative;
    display: block; 
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding-right: 45px !important; /* Prevents text from overlapping the eye icon */
    margin-bottom: 0;
}

/* Position the eye icon INSIDE the text box */
.toggle-password {
    position: absolute;
    right: 15px; 
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
    z-index: 10;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #0b3a67;
}

/* --- PASSWORD STRENGTH & RULES --- */
.strength-container {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 6px; /* Sleeker, thinner bar */
    background: #d3d3d3;
    border-radius: 4px;
    overflow: hidden;
}

#strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.4s ease-in-out, background-color 0.4s ease;
    border-radius: 4px;
}

#strength-text {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
    color: #444;
}

/* Align password requirements into a clean 2-column grid */
.password-rules {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 6px;
}

.password-rules li {
    color: #d93025; /* Default Red */
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Add an 'X' icon for unmet rules */
.password-rules li::before {
    content: '✖';
    margin-right: 6px;
    font-size: 10px;
}

/* Change to Green when the rule is met */
.password-rules li.valid {
    color: #188038; 
}

/* Change the 'X' to a checkmark for met rules */
.password-rules li.valid::before {
    content: '✔';
    font-size: 12px;
}