/* Nomico web delivery: unlock page.
   Palette comes from brand.css, generated by build.py from the canonical
   nomico-identity.json. Do not hardcode brand colours here. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--tint);
  color: var(--black);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
        sans-serif;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--grey-line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  padding: 26px 22px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.logo { display: block; width: 168px; height: auto; margin: 0 0 22px; }

h1 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--grey-deep);
}

.lede { margin: 0 0 18px; color: var(--grey-mid); font-size: .94rem; }

.tabs { display: flex; gap: 6px; margin: 0 0 14px; }

.tab {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  border: 1px solid var(--grey-line);
  border-radius: 7px;
  background: var(--tint-soft);
  color: var(--grey-mid);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}

.tab.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.blurb {
  margin: 0 0 18px;
  font-size: .88rem;
  color: var(--grey-mid);
}

.error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: .9rem;
  font-weight: 600;
}

label {
  display: block;
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey-deep);
}

input[type="password"] {
  width: 100%;
  /* 17px keeps iOS from zooming the page when the field is focused. */
  font-size: 17px;
  padding: 13px 12px;
  border: 1px solid var(--grey-mid);
  border-radius: 7px;
  background: #fff;
  color: var(--black);
  letter-spacing: .08em;
}

input[type="password"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

button {
  width: 100%;
  margin-top: 14px;
  /* 48px tall: comfortably tappable with gloves on. */
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:active { background: var(--accent-dark); }

.foot {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--grey-line);
  font-size: .76rem;
  line-height: 1.45;
  color: var(--grey-mid);
}

[hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  body { background: #15171a; color: #e8e9ea; }
  .card { background: #1d2024; border-color: #2d3237; }
  h1 { color: #f2f3f4; }
  .tab { background: #22262b; border-color: #2d3237; }
  .blurb, .lede, .foot { color: #9ea3a9; }
  input[type="password"] { background: #15171a; color: #e8e9ea; border-color: #3a4046; }
  .foot { border-top-color: #2d3237; }
}
