/* Shared sign-in look for the simonquin.com apps (Finora, Oddora).
   The same file lives in both repos: keep them identical. */
:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f2f2f2;
  --ink-2: #c4c4c4;
  --muted: #8a8a8a;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --field: #0b0b0b;
  --danger: #ffb4b4;
  --ok: #b9f0c4;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* half photo, half sign-in */
.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.side { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: #0a0a0a url(img/login.jpg) left top / cover no-repeat; }
.side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.25) 45%, rgba(0,0,0,.88)); }
.side-text { position: absolute; left: clamp(24px, 4vw, 56px); right: 24px; bottom: clamp(28px, 5vw, 56px); z-index: 1; }
.side-name { margin: 0; font: 700 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; color: #fff; }
.side-tag { margin: 10px 0 0; font-size: 17px; color: var(--ink-2); }
.main { display: grid; place-items: center; padding: 40px 24px; }
.signin { width: 100%; max-width: 380px; }
.brand-id { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 36px; font: 600 17px var(--display); color: #fff; text-decoration: none; }
.brand-id img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); }

.signin h1 { margin: 0; font: 600 34px/1.1 var(--display); letter-spacing: -.02em; color: #fff; }
.lede { margin: 8px 0 28px; color: var(--muted); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, label.field { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.hint.ok { color: var(--ok); }

input[type="text"], input[type="password"], input[type="search"], input:not([type]), input[inputmode] {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--field); color: #fff; font: 400 16px "Inter", sans-serif; letter-spacing: normal; text-transform: none;
  transition: border-color .15s, box-shadow .15s; }
input[inputmode="numeric"] { font-family: var(--mono); letter-spacing: .3em; }
input:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
input:user-invalid { border-color: var(--danger); }
input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px var(--field) inset; caret-color: #fff; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 70px; }
.reveal { position: absolute; top: 6px; right: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.reveal:hover { color: #fff; background: rgba(255,255,255,.08); }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: #fff; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 4px; border: 0; border-radius: 999px;
  background: #fff; color: #000; font: 600 15px "Inter", sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, transform .2s var(--ease); }
.btn:hover { background: #dcdcdc; transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: 14px; }
.alert-error { color: var(--danger); background: rgba(255,80,80,.08); border-color: rgba(255,120,120,.35); }
.alert-ok { color: var(--ok); background: rgba(80,255,120,.06); border-color: rgba(120,255,150,.3); }
.alert:empty { display: none; }

.switch { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .side { display: none; } .main { place-items: start center; padding-top: 32px; } .signin h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arr { transition: none; }
}
