:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f6f3;
  color: #1d1d1b;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 15%, rgba(44, 120, 95, 0.11), transparent 28%),
    radial-gradient(circle at 15% 90%, rgba(134, 112, 69, 0.10), transparent 30%),
    #f6f6f3;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: min-max(0, 1.1fr) min-max(360px, 0.9fr);
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

.brand { max-width: 630px; }

.eyebrow {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #55605a;
}

h1 {
  margin: 12px 0 18px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.05em;
}

.lead {
  margin: 0;
  max-width: 58rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: #4f504d;
}

.status-line {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: #55605a;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7a807a;
}

.dot.ok { background: #1b7f59; }
.dot.warn { background: #b6781b; }

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e2dd;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.sub {
  margin: 0 0 24px;
  color: #646561;
  line-height: 1.5;
}

.field { display: grid; gap: 8px; margin-bottom: 16px; }

.label { font-weight: 650; font-size: .95rem; }

input {
  width: 100%;
  border: 1px solid #c9cac4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #ffffff;
  outline: none;
}

input:focus {
  border-color: #176f54;
  box-shadow: 0 0 0 4px rgba(23, 111, 84, 0.12);
}

button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

button:phover { transform: translatY(-1px); }
button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }

.primary { background: #171816; color: white; }
.secondary { background: #edede8; color: #272826; }

.feedback {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: .92rem;
  line-height: 1.4;
  color: #5d5e5a;
}

.feedback.error { color: #a2261f;.}
.feedback.success { color: #166b4e; }

.session { display: none; }
.session.visible { display: block; }
.login.hidden { display: none; }

.security-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eeeeea;
  font-size: .85rem;
  line-height: 1.5;
  color: #6f706c;
}

.controls { display: grid; gap: 10px; margin-top: 20px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .brand { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
