/* =========================================================
   INTERN LOGIN
   MINDANAO STATE UNIVERSITY THEME
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;

    background:
        linear-gradient(
            135deg,
            #f7f8fa 0%,
            #f1f2f5 100%
        );

    color: #1d1d1f;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    padding: 20px;

    position: relative;

    overflow-x: hidden;
}


/* =========================================================
   BACKGROUND DECORATIONS
   ========================================================= */

body::before {
    content: "";

    position: fixed;

    width: 350px;
    height: 350px;

    background: rgba(128, 0, 0, 0.045);

    border-radius: 50%;

    top: -170px;
    left: -140px;

    z-index: 0;

    pointer-events: none;
}

body::after {
    content: "";

    position: fixed;

    width: 300px;
    height: 300px;

    background: rgba(128, 0, 0, 0.04);

    border-radius: 50%;

    bottom: -150px;
    right: -120px;

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   LOGIN BOX
   ========================================================= */

.login-box {
    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 430px;

    background: #ffffff;

    padding: 28px 30px 26px;

    border-radius: 18px;

    border: 1px solid rgba(128, 0, 0, 0.10);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);

    text-align: center;
}


/* =========================================================
   TOP MAROON LINE
   ========================================================= */

.login-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #800000;

    border-radius: 18px 18px 0 0;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    width: 78px;
    height: 78px;

    object-fit: contain;

    display: block;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: #ffffff;

    padding: 3px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   MAIN TITLE
   ========================================================= */

h1 {
    color: #800000;

    font-size: 21px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: 0.2px;

    margin-bottom: 4px;
}


/* =========================================================
   LOGIN TITLE
   ========================================================= */

h2 {
    font-size: 15px;

    font-weight: 600;

    color: #555555;

    margin-bottom: 20px;
}


/* =========================================================
   FORM
   ========================================================= */

form {
    width: 100%;

    text-align: left;
}


/* =========================================================
   LABELS
   ========================================================= */

label {
    display: block;

    text-align: left;

    margin-top: 12px;

    margin-bottom: 5px;

    font-size: 12px;

    font-weight: 600;

    color: #333333;
}


/* =========================================================
   INPUT FIELDS
   ========================================================= */

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;

    height: 42px;

    padding: 10px 12px;

    margin-top: 0;

    border: 1px solid #d8d8d8;

    border-radius: 8px;

    background: #ffffff;

    color: #222222;

    font-family: "Segoe UI", Arial, sans-serif;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* =========================================================
   INPUT PLACEHOLDER
   ========================================================= */

input::placeholder {
    color: #999999;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #800000;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(128, 0, 0, 0.08);
}


/* =========================================================
   OPTIONS
   ========================================================= */

.options {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-top: 13px;

    font-size: 11px;
}


/* =========================================================
   SHOW PASSWORD
   ========================================================= */

.show-password {
    display: flex;

    align-items: center;

    gap: 6px;

    font-size: 11px;

    font-weight: normal;

    color: #666666;

    margin: 0;

    cursor: pointer;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.show-password input {
    width: 14px;

    height: 14px;

    margin: 0;

    accent-color: #800000;

    cursor: pointer;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.options a {
    text-decoration: none;

    color: #800000;

    font-size: 11px;

    font-weight: 600;

    transition: color 0.2s ease;
}

.options a:hover {
    color: #5e0000;

    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

button {
    width: 100%;

    height: 43px;

    margin-top: 19px;

    padding: 10px 15px;

    background: #800000;

    color: #ffffff;

    border: none;

    border-radius: 8px;

    font-family: "Segoe UI", Arial, sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   BUTTON HOVER
   ========================================================= */

button:hover {
    background: #680000;

    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(128, 0, 0, 0.20);
}


/* =========================================================
   BUTTON ACTIVE
   ========================================================= */

button:active {
    transform: translateY(0);

    box-shadow: none;
}


/* =========================================================
   FORGOT PASSWORD / OTP / RESET PASSWORD
   ========================================================= */

.subtitle {
    font-size: 12px;

    font-weight: normal;

    color: #666666;

    line-height: 1.5;

    margin-bottom: 14px;

    text-align: center;
}


/* =========================================================
   OTP EMAIL
   ========================================================= */

.otp-email {
    font-size: 12px;

    font-weight: 600;

    color: #800000;

    margin-bottom: 14px;

    word-break: break-word;

    text-align: center;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.message {
    width: 100%;

    padding: 9px 10px;

    margin-bottom: 14px;

    border-radius: 8px;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.message.error {
    background: #fdeaea;

    color: #b42318;

    border: 1px solid #f5c2c2;
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.message.success {
    background: #eaf8ef;

    color: #18794e;

    border: 1px solid #b7e4c7;
}


/* =========================================================
   BACK TO LOGIN
   ========================================================= */

.back-login {
    margin-top: 14px;

    text-align: center;
}


.back-login a {
    text-decoration: none;

    color: #800000;

    font-size: 12px;

    font-weight: 600;

    transition: color 0.2s ease;
}


.back-login a:hover {
    color: #5e0000;

    text-decoration: underline;
}


/* =========================================================
   OTP INPUT
   ========================================================= */

#otp {
    text-align: center;

    letter-spacing: 7px;

    font-size: 16px;

    font-weight: 700;

    color: #800000;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 520px) {

    body {
        padding: 18px;

        align-items: center;
    }

    .login-box {
        width: 100%;

        max-width: 400px;

        padding: 25px 24px 23px;

        border-radius: 16px;
    }

    .logo {
        width: 72px;
        height: 72px;
    }

    h1 {
        font-size: 19px;
    }

    h2 {
        font-size: 14px;

        margin-bottom: 18px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 400px) {

    body {
        padding: 12px;
    }

    .login-box {
        max-width: 350px;

        padding: 22px 18px 20px;

        border-radius: 14px;
    }

    .logo {
        width: 65px;
        height: 65px;

        margin-bottom: 10px;
    }

    h1 {
        font-size: 17px;
    }

    h2 {
        font-size: 13px;

        margin-bottom: 16px;
    }

    label {
        font-size: 11px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
        height: 40px;

        font-size: 12px;
    }

    .options {
        font-size: 10px;
    }

    .show-password {
        font-size: 10px;
    }

    .options a {
        font-size: 10px;
    }

    button {
        height: 41px;

        font-size: 12px;
    }
}
/* =========================================================
   BACK TO ROLE SELECTION
   ========================================================= */

.back-role {
    display: flex;

    align-items: center;

    gap: 7px;

    width: fit-content;

    margin-bottom: 18px;

    text-decoration: none;

    color: #800000;

    font-size: 12px;

    font-weight: 600;

    transition: all 0.2s ease;
}

.back-role span {
    font-size: 17px;

    line-height: 1;
}

.back-role:hover {
    color: #5e0000;

    transform: translateX(-3px);
}