/* Yii-rendered pages (errors, placeholders, auth forms, flashes) in the adlist design system.
   Uses the tokens and component classes from tokens.css / styles.css. */

.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius, 12px); background: #eef6ff; border: 1px solid #cfe2ff; }
.flash-success { background: #ecfdf3; border-color: #b7ebc8; }
.flash-error, .flash-danger { background: #fff1f0; border-color: #ffccc7; }

.state-box { max-width: 34rem; margin: 64px auto; text-align: center; }
.state-box .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; }
.state-box h1 { margin: 12px 0 8px; font-size: 1.5rem; }
.state-box p { color: var(--muted, #667085); margin: 0 0 20px; }

.auth-card { max-width: 26rem; margin: 40px auto; padding: 28px; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; }
.auth-card h1 { margin: 0 0 6px; font-size: 1.5rem; }
.auth-card .sub { margin: 0 0 20px; color: var(--muted, #667085); font-size: .9rem; }
.auth-card .form-group { margin-bottom: 14px; }
.auth-card label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .9rem; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] {
    width: 100%; padding: 11px 12px; border: 1px solid var(--line, #d0d5dd); border-radius: 10px; font: inherit;
}
.auth-card .btn { width: 100%; justify-content: center; }
.auth-card .help-block, .auth-card .invalid-feedback { color: #d92d20; font-size: .85rem; }
.auth-card .has-error input { border-color: #d92d20; }
.auth-card .alt { margin-top: 14px; text-align: center; font-size: .9rem; }

/* text for screen readers only (live regions, hidden labels) on every page, not just the category page */
.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; }
