/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: #ffffff;

    color: #172033;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;

    /* DESKTOP:
       DO NOT ALLOW VERTICAL PAGE SCROLLING */
    overflow-y: hidden;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%;

    height: 78px;

    z-index: 2000;

    background: #071d35;

    backdrop-filter: blur(14px);

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.08);
}


.nav-container {
    width:
        min(
            1180px,
            calc(100% - 48px)
        );

    height: 78px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   NAV BRAND
========================================================= */

.nav-brand {
    display: flex;

    align-items: center;

    gap: 11px;

    color: white;
}


.nav-logo {
    width: 42px;
    height: 42px;

    border-radius: 11px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    color: #0b3d68;

    font-size: 21px;

    font-weight: 800;

    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, 0.16);
}


.nav-brand-name {
    display: flex;

    flex-direction: column;

    line-height: 1;
}


.nav-brand-name strong {
    font-size: 15px;

    letter-spacing: 2px;
}


.nav-brand-name span {
    margin-top: 4px;

    font-size: 8px;

    letter-spacing: 3px;

    opacity: 0.65;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 32px;
}


.nav-link {
    position: relative;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 12px;

    font-weight: 650;

    transition:
        color 0.2s ease;
}


.nav-link:hover {
    color: white;
}


.nav-link.active {
    color: white;
}


.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -9px;

    height: 2px;

    border-radius: 20px;

    background: #7cc9ff;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    border: none;

    border-radius: 10px;

    background: white;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    box-shadow:
        0 7px 20px
        rgba(0, 0, 0, 0.12);
}


.menu-toggle span {
    width: 19px;
    height: 2px;

    border-radius: 5px;

    background: #15304c;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.menu-toggle.open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   DESKTOP LOGIN PAGE
   =========================================================

   NAVBAR = 78px

   REMAINING SCREEN =
   100vh - 78px

   IMPORTANT:
   The entire login area is locked to that exact height.
   Therefore there is NOTHING underneath it.
========================================================= */

.login-page {

    position: relative;

    width: 100%;

    height:
        calc(100vh - 78px);

    min-height:
        calc(100vh - 78px);

    max-height:
        calc(100vh - 78px);

    margin-top: 78px;

    padding: 0;

    display: flex;

    overflow: hidden;

    background: #ffffff;
}


/* =========================================================
   LEFT BLUE SECTION
========================================================= */

.login-info {

    width: 50%;

    height: 100%;

    min-height: 0;

    padding:
        70px 8%;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #071a35 0%,
            #0b2b52 55%,
            #0d3d6d 100%
        );

    color: white;
}


.login-info::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    top: -170px;
    right: -160px;

    background:
        rgba(255, 255, 255, 0.035);
}


.login-info::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    bottom: -130px;
    left: -130px;

    background:
        rgba(255, 255, 255, 0.025);
}


.login-info-inner {

    width: 100%;

    max-width: 600px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   WELCOME
========================================================= */

.welcome-label {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 10px;

    font-weight: 750;

    letter-spacing: 2.2px;
}


.welcome-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #7cc9ff;

    box-shadow:
        0 0 0 5px
        rgba(124, 201, 255, 0.12);
}


.welcome-text h1 {

    max-width: 520px;

    font-size:
        clamp(42px, 5vw, 64px);

    line-height: 1.02;

    font-weight: 800;

    letter-spacing: -2.5px;

    margin-bottom: 24px;
}


.welcome-text h1 span {

    display: block;

    color: #b8dcf4;
}


.welcome-text p {

    max-width: 470px;

    font-size: 16px;

    line-height: 1.8;

    color:
        rgba(255, 255, 255, 0.68);
}


/* =========================================================
   FEATURES
========================================================= */

.login-features {

    margin-top: 50px;

    display: flex;

    flex-direction: column;

    gap: 22px;
}


.feature {

    display: flex;

    align-items: center;

    gap: 16px;
}


.feature-icon {

    width: 45px;
    height: 45px;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        rgba(255, 255, 255, 0.09);

    font-size: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);
}


.feature h3 {

    font-size: 14px;

    font-weight: 650;

    margin-bottom: 3px;
}


.feature p {

    font-size: 12px;

    color:
        rgba(255, 255, 255, 0.52);
}


/* =========================================================
   RIGHT LOGIN BOX
========================================================= */

.login-box {

    width: 50%;

    height: 100%;

    min-height: 0;

    padding:
        70px 9%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;

    overflow: hidden;
}


.login-box-inner {

    width: 100%;

    max-width: 480px;
}


/* =========================================================
   LOGIN HEADER
========================================================= */

.login-header {

    margin-bottom: 38px;
}


.login-label {

    margin-bottom: 12px;

    color: #1769aa;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.login-header h1 {

    font-size: 36px;

    line-height: 1.2;

    color: #14213d;

    font-weight: 800;

    margin-bottom: 9px;
}


.login-header p {

    font-size: 14px;

    color: #7b8494;
}


/* =========================================================
   MOBILE LOGO
========================================================= */

.mobile-logo {
    display: none;
}


/* =========================================================
   FORM
========================================================= */

.form-group {

    margin-bottom: 23px;
}


.form-group label {

    display: block;

    margin-bottom: 9px;

    font-size: 13px;

    font-weight: 650;

    color: #29344a;
}


.input-wrapper {

    position: relative;

    width: 100%;
}


.input-icon {

    position: absolute;

    left: 16px;

    top: 50%;

    transform:
        translateY(-50%);

    font-size: 15px;

    opacity: 0.55;

    pointer-events: none;
}


.input-wrapper input {

    width: 100%;

    height: 54px;

    border:
        1px solid
        #dfe4ec;

    border-radius: 10px;

    outline: none;

    padding:
        0 16px 0 45px;

    font-size: 14px;

    color: #1c2739;

    background: #fbfcfe;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-wrapper input::placeholder {
    color: #a0a8b5;
}


.input-wrapper input:focus {

    border-color: #1769aa;

    background: white;

    box-shadow:
        0 0 0 3px
        rgba(23, 105, 170, 0.09);
}


.password-wrapper input {
    padding-right: 75px;
}


.show-password {

    position: absolute;

    right: 13px;

    top: 50%;

    transform:
        translateY(-50%);

    border: none;

    background: transparent;

    color: #1769aa;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    padding: 6px;
}


.show-password:hover {
    color: #0d4e80;
}


/* =========================================================
   OPTIONS
========================================================= */

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin:
        3px 0 27px;
}


.remember {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    color: #687386;

    cursor: pointer;
}


.remember input {

    width: 15px;
    height: 15px;

    accent-color: #1769aa;

    cursor: pointer;
}


/* =========================================================
   BUTTON
========================================================= */

.login-btn {

    width: 100%;

    height: 54px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #0b4f82,
            #1769aa
        );

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;

    box-shadow:
        0 7px 18px
        rgba(23, 105, 170, 0.18);
}


.login-btn:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 10px 23px
        rgba(23, 105, 170, 0.25);
}


.login-btn:active {
    transform: translateY(0);
}


.login-btn:disabled {

    cursor: not-allowed;

    opacity: 0.75;

    transform: none;
}


/* =========================================================
   LOADER
========================================================= */

.button-loader {

    width: 15px;
    height: 15px;

    border-radius: 50%;

    border:
        2px solid
        rgba(255, 255, 255, 0.4);

    border-top-color: white;

    animation:
        loginSpin 0.7s linear infinite;

    display: none;
}


@keyframes loginSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    text-align: center;

    margin-top: 28px;
}


.login-footer p {

    font-size: 12px;

    color: #8992a1;
}


.login-footer a {

    color: #1769aa;

    font-weight: 650;
}


.login-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   SWEETALERT
========================================================= */

.genesis-toast {

    border-radius: 12px !important;

    padding:
        13px 17px !important;

    min-width:
        330px !important;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.16) !important;

    border:
        1px solid
        #edf0f4 !important;
}


.genesis-toast .swal2-title {

    font-size:
        14px !important;

    font-weight:
        700 !important;

    margin:
        0 0 3px 0 !important;
}


.genesis-toast .swal2-html-container {

    font-size:
        12px !important;

    color:
        #697386 !important;

    margin:
        0 !important;
}


.genesis-toast .swal2-icon {

    margin:
        0 10px 0 0 !important;

    width:
        30px !important;

    height:
        30px !important;

    min-width:
        30px !important;
}


.genesis-toast .swal2-timer-progress-bar {

    height:
        3px !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .nav-container {

        width:
            min(
                calc(100% - 36px),
                900px
            );
    }


    .nav-links {
        gap: 21px;
    }


    .login-info {
        padding: 60px 6%;
    }


    .login-box {
        padding: 60px 6%;
    }


    .welcome-text h1 {
        font-size: 47px;
    }

}


/* =========================================================
   MOBILE
   IMPORTANT:
   THIS IS WHERE SCROLLING IS RE-ENABLED.
========================================================= */

@media (max-width: 760px) {

    html,
    body {

        min-height: 100%;

        /* PHONE CAN SCROLL */
        overflow-y: auto;

        overflow-x: hidden;
    }


    .main-nav {

        height: 70px;
    }


    .nav-container {

        width:
            calc(100% - 34px);

        height: 70px;
    }


    .nav-links {

        position: absolute;

        top: 70px;

        left: 17px;
        right: 17px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        padding: 10px;

        background: white;

        border-radius: 13px;

        box-shadow:
            0 20px 50px
            rgba(0, 0, 0, 0.15);
    }


    .nav-links.open {
        display: flex;
    }


    .nav-link {

        color: #4d596a;

        padding: 13px;

        border-radius: 8px;

        font-size: 13px;
    }


    .nav-link:hover {

        background: #f1f6fa;

        color: #0d5b8c;
    }


    .nav-link.active {

        background: #f1f6fa;

        color: #0d5b8c;
    }


    .nav-link.active::after {
        display: none;
    }


    .menu-toggle {
        display: flex;
    }


    /* =====================================================
       MOBILE LOGIN PAGE

       IMPORTANT:
       Desktop fixed-height rules are completely removed.
       The page is allowed to grow naturally.
    ===================================================== */

    .login-page {

        width: 100%;

        height: auto;

        min-height: auto;

        max-height: none;

        margin-top: 70px;

        padding: 0;

        display: block;

        overflow: visible;
    }


    /* =====================================================
       MOBILE BLUE SECTION
    ===================================================== */

    .login-info {

        width: 100%;

        height: auto;

        min-height: auto;

        padding:
            60px 24px 70px;

        display: flex;

        align-items: flex-start;

        justify-content: center;

        overflow: hidden;
    }


    .login-info-inner {

        width: 100%;

        max-width: 620px;
    }


    .welcome-text h1 {

        font-size:
            clamp(
                43px,
                12vw,
                58px
            );

        letter-spacing: -2.5px;
    }


    .welcome-text p {

        font-size: 14px;

        max-width: 540px;
    }


    .login-features {

        margin-top: 40px;

        gap: 19px;
    }


    .feature {
        align-items: flex-start;
    }


    /* =====================================================
       MOBILE LOGIN FORM

       This comes immediately after the blue section.
       The whole page can scroll.
    ===================================================== */

    .login-box {

        width: 100%;

        height: auto;

        min-height: auto;

        padding:
            65px 24px 70px;

        display: flex;

        align-items: flex-start;

        justify-content: center;

        overflow: visible;
    }


    .login-box-inner {

        width: 100%;

        max-width: 540px;
    }


    .mobile-logo {

        width: 50px;
        height: 50px;

        margin:
            0 auto 20px;

        border-radius: 13px;

        display: flex;

        align-items: center;
        justify-content: center;

        background:
            linear-gradient(
                135deg,
                #0b4f82,
                #1769aa
            );

        color: white;

        font-size: 24px;

        font-weight: 800;

        box-shadow:
            0 8px 20px
            rgba(23, 105, 170, 0.20);
    }


    .login-header {

        text-align: center;

        margin-bottom: 35px;
    }


    .login-header h1 {
        font-size: 30px;
    }


    .login-options {
        margin-bottom: 23px;
    }


    .genesis-toast {

        min-width: 0 !important;

        width:
            calc(100vw - 30px) !important;

        margin:
            8px 15px !important;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .nav-brand-name strong {
        font-size: 13px;
    }


    .nav-brand-name span {

        font-size: 7px;

        letter-spacing: 2.5px;
    }


    .nav-logo {

        width: 39px;
        height: 39px;

        font-size: 19px;
    }


    .login-info {

        padding:
            50px 18px 60px;
    }


    .welcome-text h1 {

        font-size: 39px;

        letter-spacing: -2px;
    }


    .welcome-text p {

        font-size: 13px;

        line-height: 1.7;
    }


    .login-features {

        margin-top: 34px;

        gap: 18px;
    }


    .feature-icon {

        width: 42px;
        height: 42px;
    }


    .feature h3 {
        font-size: 13px;
    }


    .feature p {
        font-size: 11px;
    }


    .login-box {

        padding:
            50px 18px 60px;
    }


    .login-header h1 {
        font-size: 27px;
    }


    .input-wrapper input {
        height: 51px;
    }


    .login-btn {
        height: 51px;
    }


    .login-options {

        align-items:
            flex-start;

        gap: 10px;
    }

}