/* =====================================================
   LOGIN PAGE
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f5f8fb;
    color: #273347;
}

a {
    text-decoration: none;
}


/* =====================================================
   LOGIN PAGE
===================================================== */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 48% 52%;
}


/* =====================================================
   LEFT VISUAL
===================================================== */

.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #125589,
            #1769aa 55%,
            #4a9bc9
        );
}

.login-visual::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.13);

    top: -180px;
    right: -170px;
}

.login-visual::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.10);

    bottom: -190px;
    left: -170px;
}


/* =====================================================
   OVERLAY
===================================================== */

.visual-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,.12),
            transparent 30%
        );
}


/* =====================================================
   VISUAL CONTENT
===================================================== */

.visual-content {
    position: relative;
    z-index: 2;

    min-height: 100vh;

    padding: 55px 70px;

    display: flex;
    flex-direction: column;
}


/* =====================================================
   LOGO
===================================================== */

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: white;

    width: max-content;
}

.login-logo-icon {
    width: 45px;
    height: 45px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.16);

    border: 1px solid rgba(255,255,255,.2);

    font-size: 19px;
}

.login-logo div:last-child {
    display: flex;
    flex-direction: column;
}

.login-logo span {
    font-size: 8px;
    letter-spacing: 1.3px;
    opacity: .85;
}

.login-logo strong {
    font-size: 20px;
    letter-spacing: 1px;
}


/* =====================================================
   VISUAL TEXT
===================================================== */

.visual-text {
    margin-top: auto;
    margin-bottom: 45px;

    max-width: 550px;
}

.visual-label {
    display: inline-block;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: rgba(255,255,255,.8);

    margin-bottom: 16px;
}

.visual-text h1 {
    color: white;

    font-size: 42px;
    line-height: 1.2;

    font-weight: 800;

    margin-bottom: 18px;
}

.visual-text h1 span {
    color: #d7efff;
}

.visual-text p {
    color: rgba(255,255,255,.78);

    max-width: 480px;

    font-size: 13px;
    line-height: 1.8;
}


/* =====================================================
   FEATURES
===================================================== */

.visual-features {
    display: flex;

    gap: 15px;

    margin-top: 10px;
}

.visual-feature {
    flex: 1;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 13px;

    border-radius: 10px;

    background: rgba(255,255,255,.09);

    border: 1px solid rgba(255,255,255,.12);

    backdrop-filter: blur(5px);
}

.feature-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(255,255,255,.14);

    color: white;

    font-size: 12px;
}

.visual-feature div:last-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.visual-feature strong {
    color: white;
    font-size: 9px;
}

.visual-feature span {
    color: rgba(255,255,255,.6);
    font-size: 7px;
    line-height: 1.4;
}


/* =====================================================
   RIGHT FORM
===================================================== */

.login-form-section {
    min-height: 100vh;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}


/* =====================================================
   BACK HOME
===================================================== */

.back-home {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #8a95a4;

    font-size: 10px;

    margin-bottom: 45px;

    transition: .3s;
}

.back-home:hover {
    color: #1769aa;
}

.back-home i {
    font-size: 9px;
}


/* =====================================================
   HEADING
===================================================== */

.login-heading {
    margin-bottom: 30px;
}

.mobile-login-logo {
    display: none;
}

.login-heading h2 {
    color: #172033;

    font-size: 28px;

    line-height: 1.3;

    font-weight: 800;

    margin-bottom: 8px;
}

.login-heading p {
    color: #8792a1;

    font-size: 11px;

    line-height: 1.7;
}


/* =====================================================
   FORM
===================================================== */

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    color: #364154;

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 8px;
}

.password-label {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.password-label label {
    margin-bottom: 8px;
}

.password-label a {
    color: #1769aa;

    font-size: 9px;

    font-weight: 600;
}

.password-label a:hover {
    text-decoration: underline;
}


/* =====================================================
   INPUT
===================================================== */

.input-wrapper {
    position: relative;

    height: 48px;

    display: flex;
    align-items: center;

    border: 1px solid #dce4eb;

    border-radius: 8px;

    background: #ffffff;

    transition: .3s;
}

.input-wrapper:focus-within {
    border-color: #1769aa;

    box-shadow:
        0 0 0 3px rgba(23,105,170,.08);
}

.input-wrapper > i {
    width: 45px;

    text-align: center;

    color: #9ba5b2;

    font-size: 13px;
}

.input-wrapper input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: #273347;

    font-family: inherit;

    font-size: 11px;

    padding-right: 42px;
}

.input-wrapper input::placeholder {
    color: #b0b8c2;
}


/* =====================================================
   PASSWORD TOGGLE
===================================================== */

.toggle-password {
    position: absolute;

    right: 0;

    width: 45px;
    height: 100%;

    border: none;

    background: transparent;

    color: #929daa;

    cursor: pointer;

    transition: .3s;
}

.toggle-password:hover {
    color: #1769aa;
}


/* =====================================================
   REMEMBER
===================================================== */

.form-options {
    margin-bottom: 18px;
}

.remember-me {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    color: #7b8797;

    font-size: 10px;
}

.remember-me input {
    position: absolute;
    opacity: 0;
}

.custom-checkbox {
    width: 15px;
    height: 15px;

    border: 1px solid #ccd5de;

    border-radius: 4px;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: .2s;
}

.remember-me input:checked + .custom-checkbox {
    background: #1769aa;
    border-color: #1769aa;
}

.remember-me input:checked + .custom-checkbox::after {
    content: "✓";

    color: white;

    font-size: 9px;

    font-weight: 800;
}


/* =====================================================
   MESSAGE
===================================================== */

.login-message {
    display: none;

    padding: 10px 12px;

    border-radius: 7px;

    font-size: 10px;

    line-height: 1.5;

    margin-bottom: 15px;
}

.login-message.error {
    display: block;

    color: #b13d3d;

    background: #fff1f1;

    border: 1px solid #f5d0d0;
}

.login-message.success {
    display: block;

    color: #277c4e;

    background: #effaf3;

    border: 1px solid #cfeeda;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-button {
    width: 100%;
    height: 48px;

    border: none;

    border-radius: 8px;

    background: #1769aa;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}

.login-button:hover {
    background: #125589;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(23,105,170,.18);
}

.login-button i {
    font-size: 10px;
}


/* =====================================================
   REGISTER
===================================================== */

.register-prompt {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 5px;

    margin-top: 22px;

    font-size: 10px;
}

.register-prompt span {
    color: #8a95a4;
}

.register-prompt a {
    color: #1769aa;

    font-weight: 700;
}

.register-prompt a:hover {
    text-decoration: underline;
}


/* =====================================================
   DIVIDER
===================================================== */

.login-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e8edf1;
}

.login-divider span {
    color: #adb5bf;

    font-size: 9px;
}


/* =====================================================
   GUEST
===================================================== */

.guest-button {
    height: 45px;

    border: 1px solid #dce4eb;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color: #5f6b7b;

    font-size: 10px;

    font-weight: 600;

    transition: .3s;
}

.guest-button:hover {
    border-color: #1769aa;

    color: #1769aa;

    background: #f8fbfd;
}

.guest-button i {
    color: #1769aa;
}


/* =====================================================
   COPYRIGHT
===================================================== */

.login-copyright {
    text-align: center;

    color: #b2bac4;

    font-size: 8px;

    margin-top: 35px;
}


/* =====================================================
   LOADING
===================================================== */

.login-button.loading {
    pointer-events: none;

    opacity: .75;
}

.login-button.loading i {
    animation:
        loginSpin .8s linear infinite;
}

@keyframes loginSpin {

    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 1000px) {

    .login-page {
        grid-template-columns: 42% 58%;
    }

    .visual-content {
        padding: 40px;
    }

    .visual-text h1 {
        font-size: 32px;
    }

    .visual-features {
        flex-direction: column;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .login-page {
        display: block;
    }

    .login-visual {
        display: none;
    }

    .login-form-section {
        min-height: 100vh;

        padding: 30px 22px;
    }

    .login-form-wrapper {
        max-width: 450px;
    }

    .back-home {
        margin-bottom: 35px;
    }

    .mobile-login-logo {
        width: 45px;
        height: 45px;

        margin-bottom: 18px;

        display: flex;

        align-items: center;
        justify-content: center;

        border-radius: 10px;

        background: #1769aa;

        color: white;

        font-size: 18px;

        box-shadow:
            0 8px 20px rgba(23,105,170,.18);
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .login-form-section {
        padding: 25px 18px;
    }

    .login-heading h2 {
        font-size: 24px;
    }

}