:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #20262d;
    background: #e9edef;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: #e9edef;
}

button,
input,
select {
    font: inherit;
}

.login-page {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: 32px;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    width: min(920px, 100%);
    min-height: 590px;
    overflow: hidden;
    border: 1px solid #d7dde0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(25, 32, 38, 0.14);
}

.brand-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 44px;
    color: #ffffff;
    background: #20262d;
}

.brand-logo {
    display: grid;
    width: 150px;
    height: 94px;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #ffffff;
}

.brand-logo img {
    display: block;
    width: 135px;
    height: 84px;
    object-fit: contain;
}

.brand-content {
    margin: auto 0;
}

.brand-kicker,
.form-kicker {
    display: block;
    margin-bottom: 12px;
    color: #e24b42;
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-content h1 {
    max-width: 330px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: 0;
}

.brand-content p {
    max-width: 300px;
    margin: 20px 0 0;
    color: #c8d0d5;
    font-size: 1rem;
    line-height: 1.65;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8d0d5;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #58b785;
    box-shadow: 0 0 0 4px rgba(88, 183, 133, 0.14);
}

.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 54px 64px;
    background: #ffffff;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    margin: 0;
    color: #20262d;
    font-size: 2rem;
    font-weight: 720;
    line-height: 1.2;
    letter-spacing: 0;
}

.form-header p {
    margin: 10px 0 0;
    color: #65717a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid #edc0bc;
    border-radius: 6px;
    color: #8a2722;
    background: #fff3f2;
    font-size: 0.875rem;
    line-height: 1.45;
}

.login-alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

.login-form {
    display: grid;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #313940;
    font-size: 0.85rem;
    font-weight: 680;
    line-height: 1.3;
}

.control-wrap {
    position: relative;
    min-width: 0;
}

.control-wrap input,
.control-wrap select {
    width: 100%;
    height: 52px;
    margin: 0;
    border: 1px solid #cbd2d7;
    border-radius: 6px;
    outline: none;
    color: #20262d;
    background: #ffffff;
    font-size: 0.95rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.control-wrap input {
    padding: 0 46px;
}

.control-wrap select {
    appearance: none;
    padding: 0 46px;
    cursor: pointer;
}

.password-wrap input {
    padding-right: 52px;
}

.control-wrap input::placeholder {
    color: #98a1a8;
}

.control-wrap input:hover,
.control-wrap select:hover {
    border-color: #9faab1;
}

.control-wrap input:focus,
.control-wrap select:focus {
    border-color: #d63a32;
    box-shadow: 0 0 0 3px rgba(214, 58, 50, 0.12);
}

.control-wrap select:disabled {
    color: #8a949b;
    background: #f1f3f4;
    cursor: not-allowed;
}

.control-icon,
.select-icon {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 19px;
    height: 19px;
    pointer-events: none;
    transform: translateY(-50%);
}

.control-icon {
    left: 16px;
    color: #727e86;
}

.select-icon {
    right: 16px;
    color: #727e86;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 5px;
    color: #65717a;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: #20262d;
    background: #f0f3f4;
}

.password-toggle:focus-visible {
    outline: 2px solid #d63a32;
    outline-offset: 1px;
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.submit-button {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    border: 1px solid #c93029;
    border-radius: 6px;
    color: #ffffff;
    background: #d63a32;
    font-weight: 720;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.submit-button:hover {
    border-color: #a92822;
    background: #b92f28;
}

.submit-button:disabled,
.submit-button:disabled:hover {
    border-color: #c9ced1;
    color: #7f898f;
    background: #dfe3e5;
    cursor: not-allowed;
    transform: none;
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(214, 58, 50, 0.25);
    outline-offset: 2px;
}

.submit-button svg {
    width: 19px;
    height: 19px;
}

.access-note {
    margin: 28px 0 0;
    color: #89939a;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 760px) {
    .login-page {
        place-items: start center;
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .brand-panel {
        min-height: 210px;
        padding: 26px;
    }

    .brand-logo {
        width: 112px;
        height: 70px;
    }

    .brand-logo img {
        width: 101px;
        height: 63px;
    }

    .brand-content {
        margin: 24px 0 0;
    }

    .brand-content h1 {
        font-size: 2rem;
    }

    .brand-content p,
    .brand-status {
        display: none;
    }

    .form-panel {
        padding: 34px 26px 30px;
    }
}

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

    .login-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brand-panel {
        min-height: 196px;
        padding: 24px 20px;
    }

    .form-panel {
        padding: 30px 20px 26px;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
