/* Sign-in pages (lending console + owner console). Self-contained: no Tailwind build.
   Brand: DEVKORE navy, circuit cyan, brushed silver. */
:root {
  --navy-950: #061229;
  --navy-900: #0a1a3a;
  --navy-800: #10295a;
  --navy-700: #1b3f7a;
  --steel: #3b6e9f;
  --cyan: #38c6f4;
  --cyan-soft: #9fe3fb;
  --silver: #d9e1ec;
  --ink: #0d1b33;
  --body: #42526b;
  --muted: #6b7a90;
  --line: #d6dfeb;
  --field: #ffffff;
  --panel: #f5f8fc;
  --err-bg: #fdecee;
  --err: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3fa; --body: #b9c6d8; --muted: #8b9ab0; --line: #22406e;
    --field: #0c1f45; --panel: #071533; --err-bg: #3a1220; --err: #ff9b9b;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--panel); }

.auth {
  display: flex; min-height: 100vh;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body); -webkit-font-smoothing: antialiased;
}

/* ---------- Brand panel ---------- */
.auth__hero {
  position: relative; overflow: hidden; flex: 1 1 52%; display: none; color: #fff;
  background:
    radial-gradient(640px 380px at 22% 48%, rgba(56,198,244,.22), transparent 62%),
    radial-gradient(520px 420px at 95% 5%, rgba(59,110,159,.4), transparent 65%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}
@media (min-width: 920px) { .auth__hero { display: block; } }
.auth__circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.auth__hero-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px 52px;
}
.auth__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.auth__brand img { width: 40px; height: 40px; border-radius: 22%; }
.auth__brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--cyan-soft); opacity: .85; }
.auth__hero-mark { width: 132px; height: 132px; border-radius: 22%; margin-bottom: 30px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(159,227,251,.15), 0 0 60px -10px rgba(56,198,244,.45); }
.auth__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 16px; }
.auth__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(56,198,244,.22), 0 0 14px var(--cyan); }
.auth__hero h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; margin: 0 0 16px; font-weight: 800; max-width: 500px; letter-spacing: -.02em; }
.auth__hero h2 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--silver)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__hero p { margin: 0; max-width: 460px; color: #c9d6ea; font-size: 16px; line-height: 1.65; }
.auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 460px; }
.auth__points li { position: relative; padding-left: 28px; color: #c9d6ea; font-size: 15px; }
.auth__points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, var(--cyan) 0 3px, rgba(56,198,244,.22) 4px 7.5px); }
.auth__hero-foot { font-size: 13px; color: #8ea1bf; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth__hero-foot a { color: #c9d6ea; text-decoration: none; }

/* ---------- Form panel ---------- */
.auth__panel {
  flex: 1 1 48%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px; background: var(--panel);
}
.auth__card { width: 100%; max-width: 410px; }
.auth__mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; }
.auth__mobile-brand img { width: 40px; height: 40px; border-radius: 22%; }
.auth__mobile-brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
@media (min-width: 920px) { .auth__mobile-brand { display: none; } }
.auth__badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); background: rgba(56,198,244,.12); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .auth__badge { color: var(--cyan-soft); } }
.auth__card h1 { font-size: 30px; margin: 0 0 6px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.auth__sub { margin: 0 0 28px; color: var(--muted); font-size: 15px; }

.auth__field { margin-bottom: 16px; }
.auth__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.auth__input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--ink); outline: none; background: var(--field);
  transition: border-color .15s, box-shadow .15s;
}
.auth__input::placeholder { color: var(--muted); opacity: .8; }
.auth__input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(56,198,244,.18); }

.auth__pw { position: relative; }
.auth__pw .auth__input { padding-right: 46px; }
.auth__pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: none; background: transparent;
  color: var(--muted); cursor: pointer; border-radius: 8px;
}
.auth__pw-toggle:hover { color: var(--ink); background: rgba(56,198,244,.1); }
.auth__pw-toggle svg { width: 20px; height: 20px; }
.auth__pw-toggle .icon-hide { display: none; }
.auth__pw-toggle.is-showing .icon-show { display: none; }
.auth__pw-toggle.is-showing .icon-hide { display: inline; }

.auth__btn {
  width: 100%; padding: 14px; border: none; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--navy-700), var(--steel));
  box-shadow: 0 10px 24px -14px rgba(16,41,90,.9); transition: transform .15s, box-shadow .15s, filter .15s;
}
.auth__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.auth__btn:focus-visible { outline: 3px solid rgba(56,198,244,.5); outline-offset: 2px; }
.auth__btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.auth__btn--ghost:hover { border-color: var(--cyan); filter: none; }

.auth__divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.auth__divider::before, .auth__divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.auth__error { background: var(--err-bg); color: var(--err); font-size: 14px; padding: 11px 13px; border-radius: 10px; margin-bottom: 18px; }
.auth__hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.auth__legal { margin-top: 36px; font-size: 12px; color: var(--muted); text-align: center; }
.auth__legal a { color: inherit; }
