/* Login and device registration (js/auth.js): a card in the middle of an empty background */

.modal-layer[data-type="dialog"] .modal-panel:has(.auth) {
    width: min(400px, calc(100vw - 32px));
    padding: 28px 24px 24px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 22px;
}

.auth-logo {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.auth-company {
    color: var(--text-muted);
    font-weight: 600;
}

.auth form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.auth-field input {
    height: 46px;
    padding-inline: 14px;
    border: none;
    border-radius: 12px;
    background: var(--surface-raised);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    user-select: text;
}

.auth-field input:focus {
    box-shadow: inset 0 0 0 2px #3b6fd8;
}

.auth-field input::placeholder {
    color: #6b6e76;
}

.auth-error {
    color: var(--offline);
    font-size: 13px;
}

.auth-error[hidden] {
    display: none;
}

.auth-submit {
    margin-top: 6px;
}

.auth .dialog-title {
    text-align: center;
}

.auth .dialog-text {
    text-align: center;
}
