:root {
    --font-display: "Segoe UI Semibold", "Trebuchet MS", sans-serif;
    --font-body: "Segoe UI", "Tahoma", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family: var(--font-body);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.login-body {
    min-height: 100vh;
    background: #17171a;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

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

.login-card--immersive {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-card__header {
    margin-bottom: 36px;
}

.login-card__header--centered {
    display: flex;
    justify-content: center;
}

.login-brand-shell {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.login-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #4d6bfe;
}

.login-brand-logo svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.login-brand-text {
    display: inline-flex;
    align-items: center;
}

.login-brand-name {
    color: #4d6bfe;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 1;
}

.login-card__body,
.form-stack {
    display: grid;
}

.login-card__body {
    gap: 16px;
}

.form-stack.login-form-compact {
    gap: 20px;
}

.login-field {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-form-compact input {
    width: 100%;
    min-height: 46px;
    padding: 0 20px;
    color: #e8edf7;
    background: #1f1f22;
    border: 1px solid #3a3c44;
    border-radius: 999px;
    box-shadow: none;
    outline: none;
}

.login-form-compact input::placeholder {
    color: #7f8897;
}

.password-shell {
    position: relative;
    display: block;
}

.password-shell input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #c7cfdd;
    background: transparent;
    border: 0;
    border-radius: 999px;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.primary-button {
    border: 1px solid transparent;
    color: #f5f9ff;
    background: #4f7df0;
}

.primary-button--full {
    width: 100%;
}

.login-form-compact .primary-button {
    min-height: 42px;
    margin-top: 4px;
    border-radius: 999px;
    box-shadow: none;
}

.status-box--login {
    display: none;
}

.status-box--login:not(:empty) {
    display: block;
    padding: 0;
    color: #8b97ad;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.5;
}

.danger {
    color: #f87171;
}

@media (max-width: 720px) {
    .login-layout {
        padding: 14px;
    }
}