/* Remembered sign-in box on the AppKit sign-in page. TOKENS ONLY (no colour literals): the dark values come from auth-dark.css. */
.auth-remembered {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 10px 12px;
    background: var(--page-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.auth-remembered[hidden] {
    display: none;
}

.auth-remembered-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    color: var(--auth-accent-text);
    background: var(--brand-primary-soft);
}

.auth-remembered-text {
    flex: 1;
    min-width: 0;
}

.auth-remembered-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-remembered-email {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-remembered-switch {
    display: block;
    min-height: 44px;
    margin: -6px 0 -14px -8px; /* keeps the 44px tap target; the extra height overlaps the card padding */
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-accent-text);
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.auth-remembered-switch:focus-visible {
    outline: 2px solid var(--auth-accent-text);
    outline-offset: 2px;
}

/* The username input stays in the form (it posts the e-mail) but is not shown; only its error line may appear. */
.auth-field.is-remembered {
    margin-bottom: 0;
}

.auth-field.is-remembered > label,
.auth-field.is-remembered .auth-control > i,
.auth-field.is-remembered .auth-control > input {
    display: none;
}

.auth-field.is-remembered .auth-error,
.auth-field.is-remembered .rm-acc__err {
    display: block;
    margin: 0 0 12px;
}
