/* SOA API Console — sign-in screens only (public). The signed-in console has its own stylesheet, loaded only after authentication. Light theme. */
:root { color-scheme: light; --bg:#f5f6fa; --surface:#fff; --line:#e6e9f0; --line-strong:#d5dae4; --text:#121826; --text-2:#3b4559; --muted:#6a7488;
  --brand:#4f46e5; --brand-dark:#4338ca; --ok:#047857; --ok-bg:#e7f7ef; --bad:#b91c1c; --bad-bg:#fdeaea; --info:#1d4ed8; --info-bg:#e8f0fe; --warn:#92400e; --warn-bg:#fff4de;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; } p { margin: 0 0 10px; } a { color: var(--brand); }
code { font-family: var(--mono); font-size: 12.5px; background: #f1f3f9; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; word-break: break-all; }
.muted { color: var(--muted); } .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.noscript { padding: 24px; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; } @keyframes spin { to { transform: rotate(360deg); } }

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside { background: linear-gradient(150deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside .brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.auth-aside h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; max-width: 16ch; }
.auth-aside p { opacity: .88; max-width: 42ch; font-size: 15px; }
.auth-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; } .auth-aside li { display: flex; gap: 10px; align-items: center; opacity: .95; }
.auth-aside li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.auth-aside small { opacity: .7; }
.auth-main { display: grid; place-items: center; padding: 28px 18px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 10px 40px rgba(18,24,38,.08); }
.auth-card .brand { display: none; }
.qr { display: block; width: 200px; height: 200px; margin: 12px auto; background: #fff; padding: 6px; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } .auth-card .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; } .auth-card .logo { background: var(--brand); } }

label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 5px; color: var(--text-2); }
input[type=text], input[type=password] { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); font: inherit; }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
button { font: inherit; font-weight: 600; padding: 10px 15px; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; }
button:hover { background: #f8f9fc; } button.primary { background: var(--brand); color: #fff; border-color: transparent; } button.primary:hover { background: var(--brand-dark); } button:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; } .form-actions { margin-top: 20px; flex-direction: column; } .form-actions button { width: 100%; padding: 11px 14px; }
.alert { padding: 11px 14px; border-radius: 9px; margin: 12px 0; font-size: 13.5px; border: 1px solid transparent; }
.alert.err { background: var(--bad-bg); color: var(--bad); border-color: #f5c6c4; } .alert.info { background: var(--info-bg); color: var(--info); border-color: #c5d6fb; }
details summary { cursor: pointer; font-weight: 600; margin: 8px 0; } :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
