@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --sidebar: #F4F4F5;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --accent: #2F4A7A;
  --accent-soft: #E8EDF3;
  --error: #7A3E3E;
  --error-bg: #F4EDED;
  --radius: 24px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* ——— Login ——— */
body.login { background: var(--bg); }
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-aside {
  display: none;
  background:
    linear-gradient(180deg, rgba(47,74,122,.06), transparent 40%),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(229,231,235,.8) 32px),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(229,231,235,.8) 32px),
    var(--bg);
  padding: 48px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.lockup-stack { display: block; height: auto; max-width: 280px; }
.tagline {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  max-width: 18ch;
  line-height: 1.3;
}
.login-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px 24px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.lockup-mark-mobile {
  display: block;
  height: auto;
  max-width: 200px;
  margin: 0 auto 20px;
}
.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.lede { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.form-error {
  background: var(--error-bg);
  color: var(--error);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 0.9rem;
}
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  margin: 0 0 6px;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 16px;
}
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.password-row { position: relative; }
.password-row input { padding-right: 88px; }
.toggle-pass {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.login-foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 20px 0 0;
}
.login-foot a { color: var(--muted); text-decoration: none; }
.login-foot a:hover { color: var(--accent); }

@media (min-width: 1024px) {
  .login-shell { flex-direction: row; }
  .login-aside {
    display: flex;
    flex: 1 1 50%;
    min-height: 100vh;
  }
  .lockup-mark-mobile { display: none; }
  .login-panel { flex: 1 1 50%; padding: 48px; }
  .login-card { margin: 0; }
}

/* ——— App shell (placeholder) ——— */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.app-bar img { height: 32px; width: auto; }
.app-main { padding: 28px 20px; max-width: 720px; }
.app-main h1 { letter-spacing: -0.03em; }
.btn-quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
}
