/* =========================================
   SUMMIT LOGIN
========================================= */

:root {

    --navy: #13263d;
    --navy-light: #1d3856;

    --blue: #39779f;
    --blue-dark: #2c6286;
    --blue-pale: #edf5f9;

    --background: #f5f7f9;
    --white: #ffffff;

    --text: #263544;
    --muted: #697887;

    --border: #dfe5ea;

    --danger: #c0392b;
    --danger-bg: #fff3f1;

    --success: #237a4b;

    --radius: 18px;

}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);

    color: var(--text);

    min-height: 100vh;

}


button,
input {

    font: inherit;

}


a {

    color: inherit;
    text-decoration: none;

}


/* =========================================
   PAGE
========================================= */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns: 48% 52%;

}


/* =========================================
   LEFT INFORMATION
========================================= */

.login-information {

    position: relative;

    background:
        linear-gradient(
            145deg,
            var(--navy),
            var(--navy-light)
        );

    color: white;

    padding: 46px 7vw 36px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

}


.login-information::before {

    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.08);

    right: -230px;
    bottom: -180px;

}


.login-information::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.06);

    right: -120px;
    bottom: -70px;

}


/* =========================================
   BRAND
========================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 13px;

    position: relative;

    z-index: 2;

}


.brand img {

    width: 45px;
    height: 45px;

    object-fit: contain;

}


.brand strong {

    display: block;

    font-size: 17px;

    font-weight: 700;

    letter-spacing: -0.2px;

}


.brand span {

    display: block;

    margin-top: 3px;

    font-size: 12px;

    color: rgba(255,255,255,0.65);

}


/* =========================================
   INFORMATION CONTENT
========================================= */

.information-content {

    position: relative;

    z-index: 2;

    max-width: 560px;

    margin: auto 0;

}


.page-label {

    display: inline-flex;

    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(255,255,255,0.06);

    border-radius: 7px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.3px;

    color: rgba(255,255,255,0.75);

    margin-bottom: 22px;

}


.information-content h1 {

    font-size: clamp(42px, 4vw, 64px);

    line-height: 1.02;

    letter-spacing: -2.5px;

    max-width: 520px;

    margin-bottom: 22px;

}


.information-content > p {

    color: rgba(255,255,255,0.68);

    font-size: 16px;

    line-height: 1.75;

    max-width: 500px;

}


/* =========================================
   FEATURES
========================================= */

.information-features {

    margin-top: 34px;

    display: flex;

    flex-direction: column;

    gap: 14px;

}


.feature {

    display: flex;

    align-items: center;

    gap: 13px;

}


.feature-icon {

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255,255,255,0.08);

    border: 1px solid rgba(255,255,255,0.08);

    font-size: 18px;

}


.feature strong {

    display: block;

    font-size: 13px;

    margin-bottom: 3px;

}


.feature div span {

    color: rgba(255,255,255,0.53);

    font-size: 11px;

}


/* =========================================
   FOOTER
========================================= */

.information-footer {

    position: relative;

    z-index: 2;

    display: flex;

    justify-content: space-between;

    color: rgba(255,255,255,0.42);

    font-size: 11px;

}


/* =========================================
   LOGIN AREA
========================================= */

.login-area {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px;

}


.login-box {

    width: 100%;

    max-width: 460px;

}


/* =========================================
   MOBILE BRAND
========================================= */

.mobile-brand {

    display: none;

    margin-bottom: 42px;

}


.mobile-brand .brand strong {

    color: var(--navy);

}


.mobile-brand .brand span {

    color: var(--muted);

}


/* =========================================
   HEADING
========================================= */

.login-heading {

    margin-bottom: 30px;

}


.login-heading > span {

    display: block;

    color: var(--blue);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 9px;

}


.login-heading h2 {

    font-size: 34px;

    letter-spacing: -1px;

    color: var(--navy);

    margin-bottom: 9px;

}


.login-heading p {

    color: var(--muted);

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================
   FORM
========================================= */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 22px;

}


.form-group {

    display: flex;

    flex-direction: column;

}


.form-group label {

    color: var(--text);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 8px;

}


.input-wrapper {

    position: relative;

}


.input-icon {

    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--blue-pale);

    color: var(--blue);

    border-radius: 7px;

    font-size: 13px;

    font-weight: 800;

    pointer-events: none;

}


.form-group input {

    width: 100%;

    height: 54px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: white;

    color: var(--text);

    font-size: 15px;

    padding: 0 16px 0 53px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.form-group input::placeholder {

    color: #a5afb8;

}


.form-group input:focus {

    border-color: var(--blue);

    box-shadow:
        0 0 0 4px rgba(57,119,159,0.09);

}


.form-group small {

    margin-top: 8px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;

}


/* =========================================
   ERROR
========================================= */

.login-error {

    display: none;

    padding: 12px 14px;

    border-radius: 10px;

    background: var(--danger-bg);

    border: 1px solid #f0d0cb;

    color: var(--danger);

    font-size: 12px;

    line-height: 1.5;

}


.login-error.show {

    display: block;

}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {

    width: 100%;

    height: 54px;

    border: none;

    border-radius: 12px;

    background: var(--navy);

    color: white;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.login-button:hover {

    background: var(--navy-light);

    transform: translateY(-1px);

    box-shadow:
        0 8px 22px rgba(19,38,61,0.16);

}


.login-button:disabled {

    opacity: 0.7;

    cursor: wait;

    transform: none;

}


/* =========================================
   SPINNER
========================================= */

.button-spinner {

    display: none;

    width: 16px;
    height: 16px;

    border: 2px solid rgba(255,255,255,0.35);

    border-top-color: white;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;

}


.login-button.loading .button-spinner {

    display: block;

}


.login-button.loading #buttonText {

    opacity: 0.8;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================
   HELP BOX
========================================= */

.help-box {

    margin-top: 30px;

    padding: 18px;

    display: flex;

    gap: 13px;

    border-radius: 14px;

    background: var(--blue-pale);

    border: 1px solid #dceaf1;

}


.help-icon {

    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;

    color: var(--blue);

    font-weight: 800;

    font-size: 13px;

}


.help-box strong {

    display: block;

    font-size: 12px;

    color: var(--navy);

    margin-bottom: 5px;

}


.help-box p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.55;

    margin-bottom: 8px;

}


.help-box a {

    color: var(--blue-dark);

    font-size: 11px;

    font-weight: 700;

}


.help-box a:hover {

    text-decoration: underline;

}


/* =========================================
   BACK LINK
========================================= */

.back-link {

    display: block;

    text-align: center;

    margin-top: 25px;

    color: var(--muted);

    font-size: 12px;

    font-weight: 600;

}


.back-link:hover {

    color: var(--blue);

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {

    .login-page {

        grid-template-columns: 1fr;

    }


    .login-information {

        display: none;

    }


    .login-area {

        min-height: 100vh;

        padding: 35px 25px;

    }


    .mobile-brand {

        display: block;

    }

}


@media (max-width: 500px) {

    .login-area {

        padding: 28px 20px;

        align-items: flex-start;

    }


    .login-box {

        max-width: 100%;

    }


    .mobile-brand {

        margin-bottom: 60px;

    }


    .login-heading h2 {

        font-size: 30px;

    }

}