/* id.css - Ceylora ID (sign-on and user administration). Same palette as the bank website (css/bank_site.css). */
:root {
  --teal-950: #052A30; --teal-900: #072F35; --teal-700: #0A4F59; --teal-600: #0E6E7A; --teal-100: #D2EBE7;
  --mist: #EEF5F4; --paper: #fff; --ink: #10292D; --muted: #4D6A6D; --line: #D5E4E2;
  --gold: #E8A93A; --gold-soft: #FBEFD6; --danger: #B3261E; --ok: #1B6B3A;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif; --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: var(--mist); line-height: 1.5; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; line-height: 1.15; margin: 0; }
button, input, select { font: inherit; }
a { color: var(--teal-600); }

.id-bar { background: var(--teal-950); color: #CFE6E2; }
.id-bar .in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.id-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; }
.id-brand svg, .id-brand img { width: 34px; height: 34px; }
.id-brand small { display: block; font-family: var(--text); font-weight: 500; font-size: .75rem; color: #9FC9C3; }
.id-bar .grow { flex: 1; }
.id-bar .who { font-size: .9rem; }

/* ---------- sign-in card ---------- */
.signin-wrap { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 32px 16px; }
.signin-card { width: min(440px, 100%); background: var(--paper); border-radius: 20px; box-shadow: 0 18px 50px rgba(5, 42, 48, .14); overflow: hidden; }
.signin-card .top { background: var(--teal-700); color: #fff; padding: 26px 28px 22px; }
.signin-card .top p { margin: 6px 0 0; color: #D7ECE9; }
.signin-card form, .signin-card .signed { padding: 24px 28px 28px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 400; background: #fff; }
.field input:focus { border-color: var(--teal-600); outline: none; box-shadow: 0 0 0 3px rgba(14, 110, 122, .18); }
.pw { position: relative; display: block; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--mist); color: var(--teal-700); border-radius: 8px; padding: 5px 9px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 11px 18px; border: 0; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-teal { background: var(--teal-700); color: #fff; } .btn-teal:hover { background: var(--teal-900); }
.btn-line { background: #fff; color: var(--teal-700); border: 1.5px solid var(--teal-100); } .btn-line:hover { border-color: var(--teal-600); }
.btn-small { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid #F1C9C5; }
.btn[disabled] { opacity: .6; cursor: wait; }
.note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--mist); font-size: .92rem; }
.note.warn { background: var(--gold-soft); }
.note.error { background: #FCE8E6; color: var(--danger); font-weight: 600; }
.note.ok { background: #E3F2E8; color: var(--ok); font-weight: 600; }
.fine { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- admin ---------- */
.admin { max-width: 1120px; margin: 0 auto; padding: 26px 20px 60px; display: grid; gap: 22px; }
.panel { background: var(--paper); border-radius: 16px; padding: 20px 22px; border: 1px solid var(--line); }
.panel h2 { font-size: 1.15rem; margin-bottom: 4px; }
.panel > .fine { margin-bottom: 14px; }
.newuser { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #E6EFEE; vertical-align: middle; white-space: nowrap; }
th { font-weight: 600; color: var(--muted); font-size: .8rem; background: #F7FBFA; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; white-space: normal; }
.tag { display: inline-block; border-radius: 99px; padding: 2px 9px; font-size: .78rem; font-weight: 700; }
.tag.yes { background: #E3F2E8; color: var(--ok); } .tag.no { background: #F3F5F5; color: var(--muted); }
.tag.bad { background: #FCE8E6; color: var(--danger); } .tag.gold { background: var(--gold-soft); color: #7A520C; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--teal-950); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; max-width: 90vw; }
@media (max-width: 640px) { .id-bar .who { display: none; } }

/* the logo mark keeps a thin light edge on the dark bar */
.id-brand svg, .id-brand img { border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.4); }