/* Napeeto — public entry pages (login, register, 404). Loads after sky.css. */

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem;
}
h1, h2, h3 { font-family: "Fraunces", ui-serif, Georgia, serif; font-weight: 500; margin: 0; text-wrap: balance; }
a { color: var(--lagoon-deep); }

.auth-shell { width: 100%; max-width: 960px; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

.auth-pitch { color: var(--ink); text-shadow: 0 1px 12px rgba(255, 255, 255, 0.45); }
html.sky-night .auth-pitch { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55); }
.auth-pitch .mark { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; }
.auth-pitch .mark img { height: 28px; width: auto; display: block; }
html.sky-night .auth-pitch .mark img { filter: invert(1); }
.auth-pitch .logo { width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(150deg, var(--lagoon), var(--lagoon-deep)); color: #fff; font-weight: 700; font-size: 1rem; }
.auth-pitch h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; }
.auth-pitch h1 em { font-style: italic; color: var(--lagoon-deep); }
.auth-pitch p { color: var(--ink-soft); margin: 1rem 0 0; max-width: 34ch; }
.auth-pitch .back { display: inline-block; margin-top: 1.8rem; color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.auth-pitch .back:hover { color: var(--ink); }

.auth-card {
  background: var(--glass-solid); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); border-radius: 18px; padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.auth-card .sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.4rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.95rem; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field.two > .field { margin-bottom: 0; }
label { font-size: 0.72rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; font-family: "IBM Plex Mono", monospace; }
input, select, textarea {
  font: inherit; color: var(--ink);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.62rem 0.72rem; width: 100%;
}
select option { color: #12302d; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--lagoon) 55%, transparent); outline-offset: 1px; border-color: var(--lagoon); }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; border-radius: 999px;
  padding: 0.68rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-decoration: none; transition: transform 0.12s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--lagoon); color: #fff; width: 100%; }
.btn.solid:hover { background: var(--lagoon-deep); }
.btn.ghost { background: var(--glass); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--lagoon); color: var(--lagoon-deep); }

.divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 1.1rem; color: var(--ink-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: "IBM Plex Mono", monospace; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.roles { display: flex; flex-direction: column; gap: 0.55rem; }
.role {
  display: flex; align-items: center; gap: 0.8rem; text-align: left;
  background: color-mix(in srgb, var(--surface) 45%, transparent); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.75rem 0.9rem; cursor: pointer; text-decoration: none; color: var(--ink); transition: border-color 0.12s, background 0.12s;
}
.role:hover { border-color: var(--lagoon); background: color-mix(in srgb, var(--lagoon) 10%, transparent); }
.role .ic { width: 2rem; height: 2rem; flex: none; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--lagoon) 16%, transparent); color: var(--lagoon-deep); }
.role .ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.role b { display: block; font-weight: 600; font-size: 0.95rem; }
.role span { display: block; color: var(--ink-soft); font-size: 0.82rem; }
.role .go { margin-left: auto; color: var(--ink-faint); }

.note { font-size: 0.85rem; color: var(--ink-soft); background: color-mix(in srgb, var(--lagoon) 10%, transparent); border-radius: 10px; padding: 0.75rem 0.85rem; }
.foot-line { margin-top: 1.3rem; font-size: 0.86rem; color: var(--ink-soft); text-align: center; }

.msg { border-radius: 10px; padding: 0.7rem 0.85rem; font-size: 0.9rem; margin-bottom: 1rem; }
.msg.err { background: var(--bad-bg); color: var(--bad-ink); }
.msg.ok { background: var(--ok-bg); color: var(--ok-ink); }

.success h2 { margin-bottom: 0.5rem; }
.success .ref { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 1rem; background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem 0.6rem; display: inline-block; margin: 0.3rem 0 1rem; }

.notfound { text-align: center; color: var(--ink); max-width: 30rem; text-shadow: 0 1px 12px rgba(255, 255, 255, 0.4); }
html.sky-night .notfound { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5); }
.notfound .code { font-family: "Fraunces", serif; font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1; color: var(--lagoon-deep); }
.notfound h1 { font-size: 1.5rem; margin: 0.6rem 0 0.4rem; }
.notfound p { color: var(--ink-soft); }
.notfound .btn { margin-top: 1.4rem; display: inline-flex; width: auto; }

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; gap: 1.6rem; max-width: 440px; }
  .auth-pitch { text-align: center; }
  .auth-pitch .mark { justify-content: center; }
  .auth-pitch p { margin-inline: auto; }
  .auth-pitch .back { margin-top: 1rem; }
}
