:root {
  --ink: #101816;
  --paper: #f4f6f3;
  --white: #ffffff;
  --muted: #68716e;
  --line: #ccd3cf;
  --signal: #2ca58d;
  --alert: #b94e38;
  --glass: rgba(10, 18, 16, 0.76);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

button, input { font: inherit; letter-spacing: 0; }

.login-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
}

.photo,
.shade {
  position: fixed;
  inset: 0;
}

.photo {
  background: url("/assets/datacenter.jpg") center / cover no-repeat;
  transform: scale(1.015);
  animation: settle 1.2s ease-out both;
}

.shade {
  background: rgba(8, 15, 14, 0.58);
}

.masthead,
footer {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.masthead {
  min-height: 92px;
  padding: 24px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 16px;
}

.brand b { color: #8be0cd; font-weight: 600; }

.brand-mark img { width: 20px; height: 20px; filter: invert(1); }
.legal-header .brand-mark img { filter: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 20px;
}

.service-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.service-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #57d2a9;
  box-shadow: 0 0 0 4px rgba(87,210,169,.14);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 176px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(48px, 9vw, 140px);
  padding: 42px 0 72px;
}

.context {
  align-self: end;
  padding-bottom: 28px;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.38);
}

.eyebrow,
.sequence {
  margin: 0 0 18px;
  color: #8be0cd;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.context h1 {
  max-width: 660px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.4vw, 86px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: 0;
}

.context-note {
  margin: 24px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 15px;
}

.signin {
  width: 100%;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 6px;
  background: rgba(250,252,249,.97);
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  animation: rise .7s .1s ease-out both;
}

.signin-heading {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.sequence { margin-bottom: 10px; color: var(--signal); }

.signin h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.18;
}

form { padding-top: 26px; }

label {
  display: block;
  margin-bottom: 8px;
  color: #303936;
  font-size: 12px;
  font-weight: 700;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 48px;
  margin-bottom: 20px;
  padding: 0 14px;
  border: 1px solid #aeb8b3;
  border-radius: 4px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(44,165,141,.14);
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #297e6c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  font-weight: 500;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--signal);
}

.submit {
  width: 100%;
  height: 50px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease;
}

.submit:hover { background: #24312d; }
.submit:active { transform: translateY(1px); }
.submit:disabled { cursor: wait; opacity: .72; }

.form-message {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--alert);
  font-size: 12px;
  line-height: 1.5;
}


footer {
  min-height: 84px;
  padding: 24px clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.6);
  font-size: 11px;
}

footer nav { display: flex; gap: 24px; }
footer a { text-decoration: none; }

.legal-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-header {
  padding: 24px clamp(24px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.legal-header .brand { color: var(--ink); }
.brand-mark img { width: 20px; height: 20px; filter: invert(1); }
.legal-header .brand-mark img { filter: none; }

.legal-header .brand-mark { color: var(--ink); border-color: var(--ink); }

.legal {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0;
}

.legal h1 {
  margin: 0 0 34px;
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 400;
}

.legal h2 { margin-top: 34px; font-size: 17px; }
.legal p { color: #4f5a56; line-height: 1.75; }
.back { display: inline-block; margin-top: 34px; color: #297e6c; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes settle {
  from { opacity: .3; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 820px) {
  .masthead { min-height: 76px; }
  .service-state { display: none; }

  .shell {
    width: min(100% - 32px, 520px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 48px;
  }

  .context { align-self: auto; padding: 0; }
  .context h1 { font-size: 44px; line-height: 1.02; }
  .context-note { display: none; }
  .signin { padding: 30px 24px; }
  footer { min-height: 72px; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 420px) {
  .brand { font-size: 14px; }
.brand-mark img { width: 20px; height: 20px; filter: invert(1); }
.legal-header .brand-mark img { filter: none; }

  .brand-mark { width: 34px; height: 34px; }
  .context h1 { font-size: 38px; }
  .signin h2 { font-size: 25px; }
}
