/* The sign-in page stands on its own: it must look right even if the editor's app.css never
   loads, so everything it needs is here. */

:root {
  --ink: #0b1220;
  --panel: #0f172a;
  --line: #1e293b;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --bad: #f87171;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 620px at 12% -10%, #1e3a8a 0%, transparent 62%),
    radial-gradient(900px 520px at 108% 8%, #0f766e 0%, transparent 58%),
    linear-gradient(160deg, #020617 0%, #0b1220 55%, #020617 100%);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.signin {
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  padding: 30px 28px 24px;
  box-shadow: 0 26px 60px rgba(2, 6, 23, .65), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1d4ed8, #0e7490);
  box-shadow: 0 8px 20px rgba(29, 78, 216, .35);
}

.brand-text b {
  display: block;
  font-size: 15px;
  letter-spacing: .01em;
}

.brand-text span {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -.02em;
}

.lede {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span:first-child {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 7px;
}

input {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  color: #f8fafc;
  background: rgba(2, 6, 23, .72);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .18);
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input { padding-right: 48px; }

.reveal {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.reveal:hover { background: rgba(148, 163, 184, .14); color: #e2e8f0; }

.error {
  margin: 4px 0 14px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.5;
  color: #fee2e2;
  background: rgba(248, 113, 113, .12);
  border: 1px solid rgba(248, 113, 113, .4);
  border-radius: 11px;
}

.submit {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #041021;
  background: linear-gradient(160deg, #93c5fd, #60a5fa);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .32);
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}

.submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(37, 99, 235, .4); }
.submit:disabled { opacity: .72; cursor: progress; }

.fine {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #64748b;
}

.foot {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #475569;
}

.foot .dot { opacity: .6; }

@media (max-width: 420px) {
  .card { padding: 24px 20px 20px; border-radius: 18px; }
  h1 { font-size: 23px; }
}
