.login-page {
    --login-green: #07512c;
    --login-ink: #183d35;
    --login-muted: #737b78;
    margin: 0;
    padding: 16px;
    background: #e9e9e5;
    color: var(--login-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.login-page,
.login-page * {
    box-sizing: border-box;
}

.login-shell {
    display: grid;
    grid-template-columns: 47.5% minmax(0, 1fr);
    min-height: calc(100vh - 32px);
    min-height: calc(100svh - 32px);
    max-width: 1800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: #faf9f6;
    box-shadow: 0 12px 48px rgba(29, 44, 36, .08);
}

.login-story {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 700px;
    padding: clamp(36px, 4vw, 76px);
    isolation: isolate;
    background: #374439;
    color: #fff;
}

.login-backdrop,
.login-story::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.login-backdrop {
    object-fit: cover;
    object-position: center;
}

.login-story::after {
    content: "";
    background: linear-gradient(180deg, rgba(15, 27, 20, .02) 30%, rgba(15, 27, 20, .35) 58%, rgba(9, 20, 14, .78) 100%);
}

.login-story-content {
    padding-bottom: clamp(24px, 6vh, 84px);
}

.login-story h2 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 4.7vw, 82px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .16);
}

.login-story-rule {
    width: 78px;
    height: 2px;
    margin: 30px 0 24px;
    background: rgba(255, 255, 255, .75);
}

.login-story p {
    margin: 0;
    color: #f2f2ec;
    font-size: clamp(11px, 1.1vw, 17px);
    line-height: 2;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(36px, 4.8vw, 88px);
}

.login-content {
    width: 100%;
    max-width: 540px;
}

.login-brand {
    margin-bottom: 36px;
    text-align: center;
}

.login-brand img {
    display: block;
    width: clamp(200px, 20vw, 290px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.login-environment {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    border: 1px solid #d4dcd7;
    border-radius: 20px;
    color: #57685c;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-heading {
    margin-bottom: 34px;
    text-align: center;
}

.login-heading h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 3.6vw, 60px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: clamp(16px, 1.3vw, 20px);
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-input {
    position: relative;
}

.login-page .form-control {
    height: 62px;
    padding: 16px 18px;
    border: 1px solid #d9dedb;
    border-radius: 12px;
    background: #fff;
    color: var(--login-ink);
    font-size: 17px;
    box-shadow: 0 1px 2px rgba(29, 44, 36, .02);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.login-input .form-control {
    padding-left: 58px;
}

.login-input-password .form-control {
    padding-right: 60px;
}

.login-page .form-control::placeholder {
    color: #6e7972;
    opacity: 1;
}

.login-page .form-control:focus {
    border-color: var(--login-green);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(23, 78, 66, .12);
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 21px;
    transform: translateY(-50%);
    color: #78827c;
    font-size: 21px;
    pointer-events: none;
}

.login-password-toggle {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #66746c;
    font-size: 21px;
}

.login-password-toggle:hover {
    background: #f0f4f1;
    color: var(--login-green);
}

.login-page .login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 62px;
    margin-top: 26px;
    border: 1px solid var(--login-green);
    border-radius: 12px;
    background: var(--login-green);
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.login-page .login-submit:hover,
.login-page .login-submit:active {
    background: #103e33;
    color: #fff;
    box-shadow: 0 4px 12px rgba(23, 78, 66, .15);
}

.login-page button:focus-visible,
.login-page a:focus-visible {
    outline: 3px solid #5b907a;
    outline-offset: 4px;
}

.login-help {
    margin-top: 12px;
    text-align: right;
}

.login-forgot-password {
    min-height: 44px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--login-green);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-forgot-password:hover {
    color: #102f27;
}

.login-footer {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #dedfd9;
    color: #68746d;
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: .24em;
    text-align: center;
    text-transform: uppercase;
}

.login-page .text-danger {
    color: #ad3636;
    font-size: 14px;
}

.login-page .field-validation-error {
    display: block;
    margin-top: 7px;
}

.login-page .input-validation-error,
.login-page .has-error .form-control {
    border-color: #ad3636;
}

.login-validation.validation-summary-valid {
    display: none;
}

.login-validation.validation-summary-errors {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #ebceca;
    border-radius: 10px;
    background: #fcf1ee;
}

.login-validation ul {
    margin: 0;
    padding-left: 18px;
}

.login-page .aligncenter {
    text-align: center;
}

.login-page .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #faf9f6;
}

.login-page .modal-header,
.login-page .modal-body,
.login-page .modal-footer {
    padding: 24px;
}

.login-page .modal-header {
    background: var(--login-green);
    color: #fff;
}

.login-page .modal-footer .btn {
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 8px;
}

.login-page .btn-theme {
    background: var(--login-green);
    color: #fff;
}

@media (max-width: 991px) {
    .login-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 640px;
    }

    .login-story {
        display: none;
    }

    .login-panel {
        padding: 48px;
    }

    .login-brand img {
        width: 240px;
    }

    .login-heading h1 {
        font-size: 44px;
    }
}

@media (min-width: 992px) {
    .login-shell {
        height: calc(100vh - 32px);
        height: calc(100svh - 32px);
        min-height: 0;
    }

    .login-story {
        min-height: 0;
    }

    .login-panel {
        min-height: 0;
        overflow-y: auto;
        padding: clamp(28px, 3.5vw, 64px);
    }

    .login-brand {
        margin-bottom: 28px;
    }

    .login-brand img {
        width: clamp(190px, 16vw, 260px);
    }

    .login-heading {
        margin-bottom: 26px;
    }

    .login-footer {
        margin-top: 28px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 0;
        background: #faf9f6;
    }

    .login-shell {
        min-height: 100vh;
        min-height: 100svh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-panel {
        padding: 36px 24px;
    }

    .login-brand {
        margin-bottom: 28px;
    }

    .login-brand img {
        width: 210px;
    }

    .login-heading {
        margin-bottom: 28px;
    }

    .login-heading h1 {
        font-size: 38px;
    }

    .login-footer {
        margin-top: 28px;
        font-size: 10px;
        letter-spacing: .17em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *::before,
    .login-page *::after {
        transition: none !important;
    }
}
