.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 5vw, 56px);
}

.auth-panel {
    width: min(100%, 480px);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--round);
    box-shadow: 0 16px 48px rgba(18, 46, 37, .07);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px clamp(22px, 5vw, 38px);
    color: white;
    background: var(--dark);
    font-size: 17px;
}

.auth-content {
    padding: clamp(22px, 5vw, 38px);
}

.auth-content h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.15;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.auth-intro {
    margin: 10px 0 24px;
    color: var(--muted);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 650;
}

.auth-field input {
    display: block;
    width: 100%;
    min-height: 44px;
}

.auth-field .helptext {
    display: block;
    margin: 4px 0 7px;
    color: var(--muted);
    font-size: 12px;
}

.auth-field .helptext ul,
.auth-form .errorlist {
    margin: 0;
    padding-inline-start: 18px;
}

.auth-form .errorlist {
    margin-bottom: 6px;
    color: #8e382c;
    font-size: 14px;
}

.auth-field input[aria-invalid="true"] {
    border-color: #ac5144;
}

.auth-form button {
    min-height: 45px;
    margin-top: 6px;
}

.auth-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 12px;
}

.account-name {
    max-width: min(180px, 24vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-actions button {
    min-height: 36px;
}

@media (max-width: 620px) {
    .topbar {
        height: auto;
        min-height: 43px;
        flex-wrap: wrap;
        gap: 0 12px;
    }

    .account-actions {
        margin-left: auto;
        gap: 8px;
        flex-wrap: wrap;
    }
}
