/* Login, account and user management pages (templates/_auth_layout.html) */
.auth-page { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
.auth-center { display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; }

.auth-card { width: 100%; max-width: 380px; padding: 28px; box-sizing: border-box; }
.auth-card h1 { font-size: 20px; margin: 22px 0 16px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand strong { display: block; font-size: 15px; }
.auth-brand span { font-size: 12px; color: var(--text-3); }
.auth-brand .brand-logo {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--primary); color: #fff; flex: none;
}
.auth-brand .brand-logo .icon { width: 20px; height: 20px; }
.auth-brand .brand-logo-img { background: none; }
.auth-brand .brand-logo-img img { max-width: 100%; max-height: 100%; }

.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: 8px; }
.auth-form .input { width: 100%; box-sizing: border-box; }
.auth-form > .btn { margin-top: 18px; justify-content: center; }
.notice { margin-bottom: 12px; }
.notice code { font-size: 12px; word-break: break-all; }

.auth-wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 48px; }
.auth-wide { max-width: 1040px; }
.auth-head h1 { font-size: 22px; margin: 18px 0 4px; }
.auth-head p { margin: 0 0 18px; }
.auth-section { padding: 20px; margin-bottom: 18px; }
.auth-section h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 12px; }

.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; }
.auth-grid > div { display: flex; flex-direction: column; gap: 6px; }
.auth-grid-submit { justify-content: flex-end; }
.auth-grid-submit .btn { margin-top: 14px; }

.users-table td { vertical-align: top; }
.user-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.user-row .input { width: auto; flex: 1 1 140px; min-width: 0; }
.user-row select.input { flex: 0 0 auto; }
.user-active { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.user-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.user-pw { margin-top: 6px; }
.user-pw summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); }
.user-pw .user-row { margin-top: 6px; }
.btn.danger { color: var(--danger); }
.user-logins { font-size: 12.5px; font-variant-numeric: tabular-nums; }
