:root {
    --text: #17191c;
    --muted: #747981;
    --line: #e4e6e8;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: #fff;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(420px, .95fr)
        minmax(520px, 1.05fr);
}

.login-brand {
    min-height: 100vh;
    padding: 42px 52px;
    display: flex;
    flex-direction: column;
    background: #17191c;
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: white;
    color: #17191c;
    font-size: 17px;
    font-weight: 900;
}

.brand-name {
    font-size: 15px;
    font-weight: 800;
}

.brand-caption {
    margin-top: 2px;
    color: #989da5;
    font-size: 11px;
}

.brand-message {
    margin: auto 0;
    max-width: 590px;
}

.brand-kicker {
    margin-bottom: 20px;
    color: #969ba3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.brand-message h1 {
    margin: 0;
    font-size: clamp(42px, 4vw, 68px);
    line-height: .99;
    letter-spacing: -.055em;
}

.brand-message p {
    max-width: 450px;
    margin: 26px 0 0;
    color: #adb1b7;
    font-size: 15px;
    line-height: 1.65;
}

.brand-footer {
    color: #747980;
    font-size: 11px;
}

.login-area {
    padding: 40px;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(400px, 100%);
}

.mobile-brand {
    display: none;
}

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

.login-heading h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.04em;
}

.login-heading p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    color: #555a61;
    font-size: 12px;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9dce0;
    border-radius: 11px;
    outline: 0;
    background: white;
    color: var(--text);
    font-size: 15px;
}

.field input:focus {
    border-color: #777d85;
    box-shadow:
        0 0 0 3px rgba(17,24,39,.06);
}

.login-button {
    width: 100%;
    height: 49px;
    margin-top: 6px;
    border: 0;
    border-radius: 11px;
    background: #17191c;
    color: white;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.login-button:hover {
    background: #30343a;
}

.login-button:disabled {
    opacity: .55;
    cursor: default;
}

.login-error {
    margin: 4px 0 12px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #fff0f0;
    color: #a42c2c;
    font-size: 12px;
    line-height: 1.4;
}

.login-note {
    margin-top: 22px;
    color: #999ea5;
    text-align: center;
    font-size: 11px;
}

@media (max-width: 820px) {
    .login-layout {
        display: block;
    }

    .login-brand {
        display: none;
    }

    .login-area {
        min-height: 100vh;
        padding: 28px 20px;
    }

    .mobile-brand {
        margin-bottom: 55px;
        display: flex;
        align-items: center;
        gap: 11px;
    }

    .mobile-brand .brand-mark {
        background: #17191c;
        color: white;
    }

    .mobile-brand strong {
        font-size: 15px;
    }
}
