/* =========================================================
   UPGRADELIFESTYLE LOGIN PAGE
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* =========================================================
   LOGIN PAGE
========================================================= */

body.login-page {
    min-height: 100vh;
    margin: 0;

    background: #ffffff;

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;

    color: #1f2937;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.login-layout {
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, 0.95fr);
}


/* =========================================================
   LEFT PANEL
========================================================= */

/* =========================================================
   LEFT PANEL - LIGHT SILVER
========================================================= */

.login-left-panel {
    position: relative;

    min-height: 100vh;
    padding: 40px 56px 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #f4f5f7 0%,
            #e9ebef 50%,
            #dfe2e7 100%
        );

    color: #282E3B;
}


.login-left-panel::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    left: -200px;
    bottom: -220px;

    border-radius: 50%;

    background: rgba(40, 46, 59, 0.025);

    pointer-events: none;
}


.login-left-panel::after {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -160px;
    top: -150px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);

    pointer-events: none;
}


/* =========================================================
   LOGO
========================================================= */

.login-brand {
    position: relative;
    z-index: 5;

    width: 100%;
}


.login-brand a {
    display: inline-flex;
    align-items: center;
}


.login-logo {
    display: block;

    width: auto;
    max-width: 190px;
    height: auto;
}


/* =========================================================
   LEFT CENTER CONTENT
========================================================= */

.login-left-content {
    position: relative;
    z-index: 2;

    flex: 1;

    width: 100%;
    max-width: 680px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px 20px 0;
}


.login-left-text {
    max-width: 570px;

    position: relative;
    z-index: 3;
}


.login-left-text h1 {
    color: #282E3B;
}


.login-left-text p {
    color: #697180;
}


.login-eyebrow {
    color: #4f5868;

    background: rgba(40, 46, 59, 0.06);

    border: 1px solid rgba(40, 46, 59, 0.08);
}


/* =========================================================
   LEFT PNG
========================================================= */

.login-visual {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    margin-top: 28px;
}


.login-visual img {
    display: block;

    width: auto;
    max-width: 360px;
    max-height: 300px;

    object-fit: contain;
    object-position: bottom center;
}

/* =========================================================
   RIGHT PANEL
========================================================= */

.login-right-panel {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 60px 70px;

    background: #ffffff;
}

/* =========================================================
   LOGIN SUBMIT BUTTON
========================================================= */

#loginForm button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
    min-height: 54px;

    margin: 22px 0 0;
    padding: 14px 20px;

    border: 0;
    border-radius: 9px;

    background:
        linear-gradient(
            90deg,
            #087a31,
            #078937
        );

    color: #ffffff;

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 7px 18px
        rgba(8, 122, 49, 0.20);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}


/* Hover */

#loginForm button[type="submit"]:hover {
    transform: translateY(-1px);

    filter: brightness(1.05);

    box-shadow:
        0 9px 22px
        rgba(8, 122, 49, 0.28);
}


/* Click */

#loginForm button[type="submit"]:active {
    transform: translateY(0);

    box-shadow:
        0 4px 10px
        rgba(8, 122, 49, 0.18);
}


/* Focus */

#loginForm button[type="submit"]:focus-visible {
    outline: 3px solid rgba(8, 122, 49, 0.20);
    outline-offset: 3px;
}

/* =========================================================
   FORM WRAPPER
========================================================= */

.login-form-wrapper {
    width: 100%;
    max-width: 440px;
}


/* =========================================================
   FORM HEADER
========================================================= */

.login-form-header {
    margin-bottom: 34px;
}


.login-form-header h2 {
    margin: 0 0 10px;

    font-family:
        "Segoe UI Historic",
        "Segoe UI",
        Arial,
        sans-serif;

    color: #282E3B;

    font-size: 34px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.5px;
}


.login-form-header p {
    margin: 0;

    color: #737b8c;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.login-error {
    width: 100%;

    margin-bottom: 22px;

    padding: 13px 15px;

    border: 1px solid #fecaca;
    border-radius: 10px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   LOGIN FORM
========================================================= */

.login-form {
    width: 100%;
}


.login-field {
    width: 100%;

    margin-bottom: 22px;
}


.login-field label {
    display: block;

    margin-bottom: 8px;

    color: #303647;

    font-size: 14px;
    font-weight: 650;
}


.login-field input {
    width: 100%;
    height: 52px;

    margin: 0;

    padding: 0 16px;

    border: 1px solid #d9dde7;
    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #1f2937;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.login-field input::placeholder {
    color: #a4aab6;
}


.login-field input:hover {
    border-color: #b8bfcd;
}


.login-field input:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.10);

    background: #ffffff;
}


/* =========================================================
   PASSWORD LABEL
========================================================= */

.login-password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 8px;
}


.login-password-label label {
    margin: 0;
}


.login-password-label a {
    color: #4f46e5;

    font-size: 13px;
    font-weight: 650;

    text-decoration: none;
}


.login-password-label a:hover {
    text-decoration: underline;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-submit-btn {
    width: 100%;
    height: 52px;

    margin-top: 5px;

    border: 0;
    border-radius: 10px;

    background: #4f46e5;

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.login-submit-btn:hover {
    background: #4338ca;

    box-shadow:
        0 8px 22px rgba(79, 70, 229, 0.22);

    transform: translateY(-1px);
}


.login-submit-btn:active {
    transform: translateY(0);

    box-shadow: none;
}


/* =========================================================
   REGISTER
========================================================= */

.login-register {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 26px;

    text-align: center;

    font-size: 14px;
}


.login-register span {
    color: #777f90;
}


.login-register a {
    color: #4f46e5;

    font-weight: 700;

    text-decoration: none;
}


.login-register a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 42px;

    color: #b0b5bf;

    font-size: 12px;
}


.login-footer a {
    color: #9097a5;

    text-decoration: none;
}


.login-footer a:hover {
    color: #4f46e5;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .login-layout {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(420px, 1.1fr);
    }


    .login-left-panel {
        padding:
            32px
            35px
            0;
    }


    .login-right-panel {
        padding:
            50px
            45px;
    }


    .login-left-text h1 {
        font-size: 42px;
    }


    .login-visual img {
        max-width: 420px;
        max-height: 350px;
    }

}


/* =========================================================
   MOBILE - HIDE LEFT PANEL
========================================================= */

@media (max-width: 800px) {

    /* Hide left panel completely */
    .login-left-panel {
        display: none;
    }


    /* Change layout to single column */
    .login-layout {
        display: block;
        width: 100%;
        min-height: 100vh;
    }


    /* Login form takes full screen */
    .login-right-panel {
        width: 100%;
        min-height: 100vh;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 40px 24px;

        background: #ffffff;
    }


    .login-form-wrapper {
        width: 100%;
        max-width: 440px;
    }


    .login-form-header h2 {
        font-size: 30px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .login-right-panel {
        padding: 32px 20px;
    }


    .login-form-wrapper {
        max-width: 100%;
    }


    .login-form-header {
        margin-bottom: 28px;
    }


    .login-form-header h2 {
        font-size: 28px;
    }


    .login-field input,
    .login-submit-btn {
        height: 50px;
    }


    .login-footer {
        margin-top: 35px;
    }

}