/* =========================================================
   SASEMS STUDENT LOGIN
   ========================================================= */

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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f4f5f7;

    color: #222;
}

/* =========================================================
   BACKGROUND VIDEO
   ========================================================= */

#bg-video {
    position: fixed;

    top: 50%;
    left: 50%;

    min-width: 100%;
    min-height: 100%;

    width: auto;
    height: auto;

    transform: translate(-50%, -50%);

    object-fit: cover;

    z-index: -3;
}

/* =========================================================
   BACKGROUND OVERLAY
   ========================================================= */

.blur-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.48),
            rgba(255, 245, 245, 0.30)
        );

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    z-index: -2;
}

/* =========================================================
   AUTH PANEL
   ========================================================= */

.auth-panel {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: min(420px, calc(100vw - 30px));

    max-height: calc(100vh - 28px);

    padding: 34px 34px 26px;

    background: rgba(255, 255, 255, 0.84);

    border:
        1px solid rgba(255, 255, 255, 0.90);

    border-radius: 24px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.16),
        0 8px 20px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    text-align: center;

    overflow-y: auto;
}

/* =========================================================
   LOGO
   ========================================================= */

.main-logo {
    display: block;

    width: 78px;
    height: 78px;

    object-fit: contain;

    margin: 0 auto 13px;

    filter:
        drop-shadow(
            0 5px 10px rgba(0, 0, 0, 0.12)
        );
}

/* =========================================================
   WELCOME SECTION
   ========================================================= */

.welcome-section {
    margin-bottom: 17px;
}

.welcome-section h1 {
    color: #25272b;

    font-size: 1.38rem;

    font-weight: 700;

    line-height: 1.2;

    margin-bottom: 5px;
}

.welcome-section p {
    color: #777c82;

    font-size: 0.84rem;

    line-height: 1.5;
}

/* =========================================================
   PORTAL TITLE
   ========================================================= */

.auth-panel h2 {
    color: #393b40;

    font-size: 0.89rem;

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}

/* =========================================================
   RED LINE
   ========================================================= */

.red-line {
    width: 44px;
    height: 3px;

    margin: 0 auto 24px;

    background: #c0392b;

    border-radius: 10px;

    box-shadow:
        0 0 10px rgba(192, 57, 43, 0.20);
}

/* =========================================================
   INPUT GROUP
   ========================================================= */

.input-group {
    position: relative;

    width: 100%;

    margin-bottom: 15px;

    text-align: left;
}

/* Left icon */

.input-group .input-icon {
    position: absolute;

    top: 50%;
    left: 16px;

    transform: translateY(-50%);

    color: #777d84;

    font-size: 0.94rem;

    pointer-events: none;

    z-index: 2;

    transition:
        color 0.2s ease;
}

/* =========================================================
   INPUT
   ========================================================= */

.input-group input {
    width: 100%;
    height: 51px;

    padding: 0 46px;

    background: rgba(255, 255, 255, 0.82);

    border:
        1px solid rgba(70, 70, 70, 0.15);

    border-radius: 11px;

    outline: none;

    color: #252525;

    font-size: 0.93rem;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.035);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: #989da3;
}

.input-group input:hover {
    background: #ffffff;
}

.input-group input:focus {
    background: #ffffff;

    border-color: #c0392b;

    box-shadow:
        0 0 0 3px rgba(192, 57, 43, 0.10);
}

.input-group:focus-within .input-icon {
    color: #c0392b;
}

/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

#togglePassword {
    position: absolute;

    top: 50%;
    right: 16px;

    left: auto !important;

    transform: translateY(-50%);

    color: #81868c;

    font-size: 0.94rem;

    cursor: pointer;

    z-index: 5;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

#togglePassword:hover {
    color: #c0392b;

    transform:
        translateY(-50%)
        scale(1.05);
}

/* =========================================================
   FORM ACTIONS
   ========================================================= */

.form-actions {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    width: 100%;

    margin-bottom: 19px;

    font-size: 0.81rem;
}

/* =========================================================
   CHECKBOX
   ========================================================= */

.custom-checkbox-container {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 20px;

    padding-left: 24px;

    color: #6f747a;

    cursor: pointer;

    user-select: none;

    white-space: nowrap;
}

.custom-checkbox-container input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox-container .checkmark {
    position: absolute;

    top: 50%;
    left: 0;

    width: 15px;
    height: 15px;

    transform: translateY(-50%);

    background: #ffffff;

    border:
        1px solid #c9cdd1;

    border-radius: 4px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.custom-checkbox-container:hover .checkmark {
    border-color: #c0392b;
}

.custom-checkbox-container input:checked ~ .checkmark {
    background: #c0392b;

    border-color: #c0392b;
}

.custom-checkbox-container .checkmark::after {
    content: "";

    position: absolute;

    display: none;

    left: 4px;
    top: 0;

    width: 4px;
    height: 8px;

    border:
        solid #ffffff;

    border-width:
        0 2px 2px 0;

    transform: rotate(45deg);
}

.custom-checkbox-container
input:checked
~ .checkmark::after {
    display: block;
}

/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.forgot-link {
    color: #b33329;

    text-decoration: none;

    font-weight: 600;

    transition:
        color 0.2s ease;
}

.forgot-link:hover {
    color: #c0392b;

    text-decoration: underline;
}

/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.btn-login {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;
    height: 51px;

    padding: 0 18px;

    background: #c0392b;

    color: #ffffff;

    border: none;

    border-radius: 11px;

    font-size: 0.94rem;

    font-weight: 700;

    letter-spacing: 0.4px;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(192, 57, 43, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-login:hover {
    background: #a93226;

    transform: translateY(-1px);

    box-shadow:
        0 11px 23px rgba(192, 57, 43, 0.25);
}

.btn-login:active {
    transform: translateY(0);
}

/* =========================================================
   SIGNUP SECTION
   ========================================================= */

.signup-section {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 19px;

    font-size: 0.84rem;

    line-height: 1.5;
}

.signup-text {
    color: #777c82;

    font-weight: 400;
}

.signup-link {
    color: #b33329;

    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease;
}

.signup-link:hover {
    color: #c0392b;

    text-decoration: underline;
}

/* =========================================================
   BACK TO HOME
   ========================================================= */

.btn-back {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 19px;

    color: #72777d;

    text-decoration: none;

    font-size: 0.82rem;

    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.btn-back:hover {
    color: #c0392b;

    transform: translateX(-2px);
}

/* =========================================================
   SWEETALERT
   ========================================================= */

body.swal2-shown,
body.swal2-height-auto {
    height: 100% !important;

    overflow: hidden !important;
}

.swal2-container {
    position: fixed !important;

    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    padding: 16px !important;

    background:
        rgba(0, 0, 0, 0.46) !important;

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

    z-index: 999999 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;
}

/* =========================================================
   SWEETALERT POPUP
   ========================================================= */

.custom-swal-popup {
    width:
        min(
            380px,
            calc(100vw - 30px)
        ) !important;

    background:
        #ffffff !important;

    border:
        1px solid rgba(0, 0, 0, 0.07) !important;

    border-radius:
        18px !important;

    padding:
        28px 24px 24px !important;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.22) !important;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif !important;
}

.custom-swal-title {
    color:
        #252525 !important;

    font-size:
        1.30rem !important;

    font-weight:
        700 !important;
}

.custom-swal-text {
    color:
        #696d72 !important;

    font-size:
        0.91rem !important;

    line-height:
        1.6 !important;
}

.custom-swal-btn {
    min-width:
        105px !important;

    background:
        #c0392b !important;

    color:
        #ffffff !important;

    padding:
        10px 24px !important;

    border:
        none !important;

    border-radius:
        9px !important;

    font-size:
        0.88rem !important;

    font-weight:
        700 !important;

    cursor:
        pointer !important;

    transition:
        background 0.2s ease,
        transform 0.2s ease !important;
}

.custom-swal-btn:hover {
    background:
        #a93226 !important;

    transform:
        translateY(-1px);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    body {
        padding: 14px;
    }

    .auth-panel {
        width:
            calc(100vw - 26px);

        padding:
            28px 21px 23px;

        border-radius:
            20px;
    }

    .main-logo {
        width:
            70px;

        height:
            70px;
    }

    .welcome-section h1 {
        font-size:
            1.25rem;
    }

    .welcome-section p {
        font-size:
            0.80rem;
    }

    .auth-panel h2 {
        font-size:
            0.84rem;
    }

    .red-line {
        margin-bottom:
            21px;
    }

    .input-group input {
        height:
            49px;
    }

    .btn-login {
        height:
            49px;
    }

    .form-actions {
        font-size:
            0.76rem;
    }

    .signup-section {
        font-size:
            0.80rem;
    }
}

/* =========================================================
   SHORT SCREENS
   ========================================================= */

@media (max-height: 650px) {

    .auth-panel {
        padding:
            20px 28px;
    }

    .main-logo {
        width:
            58px;

        height:
            58px;

        margin-bottom:
            8px;
    }

    .welcome-section {
        margin-bottom:
            10px;
    }

    .welcome-section h1 {
        font-size:
            1.18rem;
    }

    .welcome-section p {
        font-size:
            0.76rem;
    }

    .red-line {
        margin-bottom:
            15px;
    }

    .input-group {
        margin-bottom:
            11px;
    }

    .form-actions {
        margin-bottom:
            14px;
    }

    .signup-section {
        margin-top:
            13px;
    }

    .btn-back {
        margin-top:
            12px;
    }
}