.login-page {
    min-height: 100vh;

    background: var(--bg);

    overflow: hidden;
}

.login-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 48%)
        minmax(420px, 52%);
}


/* LEFT */

.login-brand-panel {
    position: relative;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    padding: 48px;

    color: #fff;

    background:
        radial-gradient(
            circle at 20% 15%,
            rgba(255,255,255,.08),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #173d2e 0%,
            #1f4d3a 55%,
            #122e23 100%
        );
}

.login-brand-content {
    display: flex;

    align-items: center;

    gap: 14px;
}

.login-logo,
.login-mobile-logo {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 15px;

    background: #fff;
    color: var(--primary-dark);

    font-size: 20px;
    font-weight: 900;

    letter-spacing: -.03em;
}

.login-brand-name {
    font-size: 24px;

    font-weight: 800;
}

.login-brand-subtitle {
    margin-top: 3px;

    color: rgba(255,255,255,.6);

    font-size: 13px;
}

.login-brand-message {
    max-width: 560px;
}

.login-brand-message h1 {
    margin: 0 0 18px;

    font-size: clamp(38px, 4vw, 60px);

    line-height: 1.04;

    letter-spacing: -.04em;
}

.login-brand-message p {
    max-width: 520px;

    margin: 0;

    color: rgba(255,255,255,.72);

    font-size: 18px;

    line-height: 1.55;
}

.login-brand-footer {
    color: rgba(255,255,255,.42);

    font-size: 13px;
}


/* RIGHT */

.login-form-panel {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 48px;
}

.login-card {
    width: 100%;

    max-width: 500px;
}

.login-card-header {
    margin-bottom: 34px;
}

.login-mobile-logo {
    display: none;

    margin-bottom: 24px;

    background: var(--primary);
    color: #fff;
}

.login-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .1em;
}

.login-card-header h2 {
    margin: 0;

    font-size: 38px;

    letter-spacing: -.03em;
}

.login-card-header p {
    margin: 10px 0 0;

    color: var(--text-soft);

    font-size: 16px;

    line-height: 1.5;
}


/* ALERT */

.login-alert {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 24px;

    padding: 15px 16px;

    border: 1px solid #f3b7b3;

    border-radius: 12px;

    background: #fff1f0;

    color: #912018;

    font-size: 14px;
}

.login-alert-icon {
    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #b42318;

    color: #fff;

    font-weight: 800;
}


/* FORM */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.form-group label {
    color: var(--text);

    font-size: 14px;

    font-weight: 700;
}

.input-wrap {
    position: relative;

    display: flex;

    align-items: center;
}

.input-icon {
    position: absolute;

    left: 17px;

    z-index: 2;

    color: #98a2b3;

    font-size: 16px;

    pointer-events: none;
}

.login-input {
    width: 100%;

    height: 58px;

    padding: 0 76px 0 48px;

    border: 1px solid #d0d5dd;

    border-radius: 12px;

    background: #fff;

    color: var(--text);

    font-size: 17px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.login-input:focus {
    outline: none;

    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(31,77,58,.12);
}

.password-toggle {
    position: absolute;

    right: 8px;

    min-width: 60px;
    height: 42px;

    padding: 0 10px;

    border: 0;

    border-radius: 9px;

    background: var(--surface-soft);

    color: var(--primary);

    cursor: pointer;

    font-size: 13px;
    font-weight: 800;
}


/* REMEMBER */

.remember-option {
    min-height: 52px;

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    user-select: none;

    font-size: 14px;
}

.remember-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    position: relative;

    flex: 0 0 auto;

    width: 25px;
    height: 25px;

    border: 2px solid #d0d5dd;

    border-radius: 7px;

    background: #fff;
}

.remember-option input:checked
+ .custom-checkbox {
    border-color: var(--primary);

    background: var(--primary);
}

.remember-option input:checked
+ .custom-checkbox::after {
    content: "";

    position: absolute;

    left: 7px;
    top: 3px;

    width: 6px;
    height: 11px;

    border: solid #fff;

    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


/* SUBMIT */

.login-submit {
    width: 100%;

    min-height: 60px;

    border: 0;

    border-radius: 12px;

    background: var(--primary);

    color: #fff;

    cursor: pointer;

    font-size: 17px;

    font-weight: 800;

    transition:
        background .15s ease,
        transform .08s ease;
}

.login-submit:hover {
    background: var(--primary-dark);
}

.login-submit:active {
    transform: scale(.99);
}

.login-help {
    margin-top: 26px;

    text-align: center;

    color: #98a2b3;

    font-size: 13px;
}


/* TABLET */

@media (max-width: 1000px) {

    .login-shell {
        grid-template-columns:
            minmax(330px, 42%)
            minmax(420px, 58%);
    }

    .login-brand-panel {
        padding: 34px;
    }

    .login-form-panel {
        padding: 34px;
    }

    .login-brand-message h1 {
        font-size: 40px;
    }

}


/* MOBILE */

@media (max-width: 760px) {

    .login-page {
        overflow: auto;
    }

    .login-shell {
        display: block;

        min-height: 100vh;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;

        padding: 28px 20px;
    }

    .login-mobile-logo {
        display: flex;
    }

    .login-card-header h2 {
        font-size: 32px;
    }

}


/* TOUCHSCREEN */

@media (pointer: coarse) {

    .login-input {
        height: 66px;

        font-size: 19px;

        border-radius: 14px;
    }

    .password-toggle {
        min-width: 76px;
        height: 50px;

        font-size: 15px;
    }

    .remember-option {
        min-height: 62px;

        font-size: 16px;
    }

    .custom-checkbox {
        width: 30px;
        height: 30px;
    }

    .remember-option input:checked
    + .custom-checkbox::after {
        left: 9px;
        top: 4px;

        width: 7px;
        height: 14px;
    }

    .login-submit {
        min-height: 68px;

        font-size: 19px;
    }

}