/* LOGIN REGISTER */


/* .logBody,
.regBody {
    background-image: url('../img/malabon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100dvh;
} */
.logBody,
.regBody {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-attachment: fixed;
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
}

.logBody::before,
.regBody::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}


body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    margin: 0;
}

form {
    width: 80%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: grid;
    gap: 30px;
    grid-template-columns: 400px 1fr;
    padding: 25px !important;
    align-items: center;
}

.logBody form {
    height: 50%;
    width: 60%;
}

.regBody form {
    height: 70%;

}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inputCont {
    grid-template-columns: 140px 1fr;
}

.logBody .card,
.regBody .card {
    z-index: 1;
}

.photoDiv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.photoDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 35dvh;
    overflow: hidden;
}

@media (max-width: 1023px) {

    html,
    body,
    .logBody form {
        overscroll-behavior: none;
        touch-action: none;
    }

    form {
        display: flex;
        flex-direction: column;
        padding: 10px !important;
        width: calc(100% - 20px);
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        gap: 20px;
    }

    .logBody form {
        height: 70%;
        overflow-y: hidden;
        width: calc(100% - 20px);
    }

    .regBody form {
        height: 90%;
    }

    .logBody .card,
    .regBody .card {
        margin: 0;

    }

    .photoDiv {
        height: min-content;
    }

    .inputCont {
        grid-template-columns: 100px 1fr;
    }

    .regBody .photoDiv {
        display: none;
    }


    .photoDiv img {
        border-radius: 0 0 20px 20px;
    }


}

form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0021a7;
    font-size: 24px;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
}


#password-hint {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
    line-height: 1.4;
}

#password-hint span {
    display: block;
}

.valid {
    color: #008000;
}

.invalid {
    color: #d32f2f;
}


.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.error {
    background: #ffe5e5;
    color: #d10000;
    border: 1px solid #d10000;
    margin-top: 6px;
    padding: 5px;
}

.success {
    background: #e8ffe8;
    color: #007a00;
    border: 1px solid #007a00;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 35px;
    box-sizing: border-box;
}

.password-wrapper .toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #000;
    user-select: none;
}

#password-match:empty {
    display: none;
}

#password-match {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}

.password-wrapper .toggle:hover {
    opacity: 0.6;
}

.form-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}

.form-footer a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}