/* Nutralab Operations sign-in. Visual source of truth: saved template 2026-09-16 (concept 11, motion C). */
:root {
  --bg: #101b17;
  --ink: #f1f4ef;
  --muted: #aebbb2;
  --muted-2: #a7b6ac;
  --label: #b0bcb3;
  --line: #6d8075;
  --line-focus: #a4ca72;
  --link: #a9ca79;
  --cta: #a4ca72;
  --cta-ink: #102014;
  --cta-hover: #b5d688;
  --foot: #869b8d;
  --error: #f0b8a8;
  --error-line: #c7796a;
  --outline: #91ad68;
  --outline-opacity: .11;
  --field-h: 48px;
  --radius: 7px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.screen {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative outline: left 60%, top -11%, width 80%, height 142% (template settings). */
.art {
  position: absolute;
  left: 60%;
  top: -11%;
  width: 80%;
  height: 142%;
  pointer-events: none;
  z-index: 0;
}
.art > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}
.art #outline { opacity: var(--outline-opacity); }

.head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 4.6% 0;
}
.brand { width: 240px; max-width: 42vw; height: auto; display: block; }
.section { font-size: 12px; letter-spacing: .18em; color: var(--label); }

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.form { width: min(400px, 100%); }
.form h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.1;
  margin: 0 0 10px;
  text-wrap: balance;
}
.sub { font-size: 16px; color: var(--muted); margin: 0 0 34px; }

.group { margin-bottom: 22px; }
.label { display: block; font-size: 14px; margin: 0 0 9px; }
.field {
  display: block;
  width: 100%;
  height: var(--field-h);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .018);
  color: var(--ink);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--foot); }
.field:focus-visible {
  outline: none;
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px rgba(164, 202, 114, .22);
}
.field[aria-invalid="true"] { border-color: var(--error-line); }
.field.code { letter-spacing: .3em; font-size: 20px; }

.field-wrap { position: relative; }
.field-wrap .field { padding-right: 48px; }
.eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #b7c4ba;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.eye svg { width: 20px; height: 20px; }
.eye-shape { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.eye-slash { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; display: none; }
.eye[aria-pressed="true"] .eye-slash { display: block; }
.eye:hover { color: var(--ink); }
.eye:focus-visible { outline: 2px solid var(--line-focus); outline-offset: 2px; }

.forgot { font-size: 13px; text-align: right; margin: -7px 0 28px; }
.forgot a, .access a { color: var(--link); text-decoration: none; }
.forgot a:hover, .access a:hover { text-decoration: underline; }
.forgot a:focus-visible, .access a:focus-visible { outline: 2px solid var(--line-focus); outline-offset: 3px; border-radius: 2px; }

.cta {
  display: block;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: var(--radius);
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s;
}
.cta:hover { background: var(--cta-hover); }
.cta:focus-visible { outline: 2px solid #c5e798; outline-offset: 3px; }
.cta[aria-busy="true"] { cursor: progress; opacity: .85; }
.cta .cta-busy { display: none; }
.cta[aria-busy="true"] .cta-label { display: none; }
.cta[aria-busy="true"] .cta-busy { display: inline; }
.cta:disabled { cursor: not-allowed; }

.access { font-size: 12px; color: var(--muted-2); text-align: center; margin: 22px 0 0; }

.error { font-size: 13px; color: var(--error); margin: 8px 0 0; }
.alert {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--error-line);
  border-radius: var(--radius);
  background: rgba(199, 121, 106, .12);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.alert.ok { border-color: var(--line-focus); background: rgba(164, 202, 114, .1); }

.foot {
  position: relative;
  z-index: 1;
  padding: 0 4.6% 38px;
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--foot);
}

[hidden] { display: none !important; }

/* Mobile and short viewports: keep the form readable and the artwork out of its way. */
@media (max-width: 700px) {
  .form h1 { font-size: 36px; }
  .head { padding-top: 24px; }
  .section { font-size: 10px; }
  .art { opacity: .5; left: 45%; width: 110%; }
  .stage { padding: 28px 20px; }
  .foot { padding-bottom: 28px; }
}
@media (max-height: 640px) {
  .head { padding-top: 20px; }
  .stage { padding: 20px; }
  .sub { margin-bottom: 22px; }
  .foot { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .art > svg { will-change: auto; transform: none !important; }
  .field, .cta { transition: none; }
}
