/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    height: 100vh;
    min-height: 100vh;

    background: #edf6ff;
    color: #222;

    overflow: hidden;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 350px;
    max-width: 100%;

    background: white;

    padding: 30px 35px;

    border-radius: 10px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);

    text-align: center;

    position: relative;
    z-index: 2;
}
.login-processing {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 35, 65, 0.48);
}

.login-processing.is-visible {
    display: flex;
}

.login-processing-card {
    min-width: 220px;
    padding: 28px 32px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    color: #123b75;
    text-align: center;
}

.login-processing-hourglass {
    display: inline-block;
    font-size: 42px;
    line-height: 1;
    animation: hourglass-turn 1.4s ease-in-out infinite;
}

.login-processing-card p {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
}

@keyframes hourglass-turn {
    0%, 40% {
        transform: rotate(0deg);
    }

    60%, 100% {
        transform: rotate(180deg);
    }
}

/* =========================================================
   LOGO
========================================================= */

.company-logo {
    display: block;

    width: 90px;
    height: 90px;

    object-fit: contain;

    margin: 0 auto 10px;
}


/* =========================================================
   TITLE
========================================================= */

.login-card h2 {
    color: #123b75;

    margin-bottom: 5px;

    font-size: 24px;
    font-weight: 700;
}


/* =========================================================
   SUBTITLE
========================================================= */

.login-card > p {
    font-size: 13px;

    color: #777;

    margin-bottom: 20px;
}


/* =========================================================
   FORM
========================================================= */

.login-card form {
    width: 100%;
    text-align: left;
}


/* =========================================================
   LABEL
========================================================= */

.login-card form > label {
    display: block;

    font-size: 12px;

    color: #333;

    margin-bottom: 5px;
}


/* =========================================================
   INPUT
========================================================= */

.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
    display: block;

    width: 100%;
    height: 35px;

    padding: 0 10px;

    margin: 0 0 15px;

    border: 1px solid #d5ddea;

    border-radius: 5px;

    background: white;

    color: #222;

    font-family: Arial, sans-serif;
    font-size: 14px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   INPUT FOCUS
========================================================= */

.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus,
.login-card input[type="text"]:focus {
    border-color: #0057d9;

    box-shadow:
        0 0 0 2px rgba(0, 87, 217, 0.08);
}


/* =========================================================
   PASSWORD BOX
========================================================= */

.password-box {
    position: relative;

    width: 100%;
}


/* =========================================================
   PASSWORD INPUT
========================================================= */

.password-box input[type="password"],
.password-box input[type="text"] {
    width: 100% !important;

    height: 35px !important;

    padding-right: 40px !important;

    margin-bottom: 15px !important;

    box-sizing: border-box !important;
}


/* =========================================================
   EYE ICON
========================================================= */

.eye-icon {
    position: absolute;

    right: 10px;
    top: 50%;

    width: 24px;
    height: 24px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #000;

    font-size: 14px;

    cursor: pointer;

    z-index: 10;
}

.eye-icon:hover {
    color: #0057d9;
}


/* =========================================================
   OPTIONS
========================================================= */

.options {
    width: 100%;

    display: flex;

    justify-content: space-between;
    align-items: center;

    font-size: 11px;

    margin-bottom: 15px;
}


/* =========================================================
   REMEMBER ME
========================================================= */

.options .remember {
    display: flex;

    align-items: center;

    gap: 5px;

    width: auto;

    margin: 0;

    padding: 0;

    font-size: 11px;

    color: #333;

    white-space: nowrap;
}


/* =========================================================
   CHECKBOX
========================================================= */

.options .remember input[type="checkbox"] {
    width: auto;
    height: auto;

    margin: 0;

    padding: 0;

    cursor: pointer;
}


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.options .forgot-password-link {
    color: #0057d9;

    text-decoration: none;

    font-size: 11px;

    white-space: nowrap;
}

.options .forgot-password-link:hover {
    color: #0042a8;

    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-card form > button[type="submit"] {
    display: block;

    width: 100%;
    height: 38px;

    margin: 0;
    padding: 0 15px;

    border: none;

    border-radius: 5px;

    background: #0057d9;

    color: white;

    cursor: pointer;

    font-family: Arial, sans-serif;

    font-size: 14px;

    text-align: center;

    appearance: none;
    -webkit-appearance: none;
}

.login-card form > button[type="submit"]:hover {
    background: #0042a8;
}


/* =========================================================
   FOOTER
========================================================= */

.footer-text {
    margin-top: 20px;

    font-size: 10px;

    color: #777;

    line-height: 1.4;

    text-align: center;
}


/* =========================================================
   ALERT
========================================================= */

.alert {
    width: 100%;

    margin-bottom: 15px;

    padding: 8px 10px;

    border-radius: 5px;

    font-size: 12px;

    text-align: left;
}

.alert-danger {
    color: #842029;

    background: #f8d7da;

    border: 1px solid #f5c2c7;
}


/* =========================================================
   BACKGROUND SHAPES
========================================================= */

.shape1 {
    position: absolute;

    width: 250px;
    height: 250px;

    top: 20px;
    left: 20px;

    background: #d8ecff;

    border-radius: 40px;

    z-index: 0;

    pointer-events: none;
}

.shape2 {
    position: absolute;

    width: 200px;
    height: 200px;

    bottom: 40px;
    right: 30px;

    background: #d8ecff;

    border-radius: 50%;

    z-index: 0;

    pointer-events: none;
}

.circle {
    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    top: -100px;

    background: #cce5ff;

    border-radius: 50%;

    z-index: 0;

    pointer-events: none;
}

.blob {
    position: absolute;

    width: 220px;
    height: 220px;

    left: -80px;
    bottom: -80px;

    background: #d4eaff;

    border-radius: 50%;

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .login-page {
        min-height: 100vh;

        padding: 20px 12px;
    }

    .login-card {
        width: 100%;
        max-width: 350px;

        padding: 25px 22px;
    }

    .company-logo {
        width: 70px;
        height: 70px;
    }

    .login-card h2 {
        font-size: 22px;
    }

    .login-card > p {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .login-card form > label {
        font-size: 12px;
    }

    .login-card input[type="email"],
    .login-card input[type="password"],
    .login-card input[type="text"] {
        height: 35px;

        font-size: 14px;
    }

    .password-box input[type="password"],
    .password-box input[type="text"] {
        height: 35px !important;
        padding-right: 40px !important;
    }

    .eye-icon {
        right: 10px;

        width: 24px;
        height: 24px;

        font-size: 14px;
    }

    .options {
        font-size: 10px;
    }

    .options .remember {
        font-size: 10px;
    }

    .options .forgot-password-link {
        font-size: 10px;
    }

    .login-card form > button[type="submit"] {
        height: 38px;

        font-size: 14px;
    }

    .footer-text {
        font-size: 9px;
    }
}