:root {
  --ink: #17191c;
  --paper: #f6f6f2;
  --sig: #c8401c;
  --muted: #6b706c;
  --line: #d8d9d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
}

.entry {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.entry__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 64px;
  background: var(--ink);
  color: #fff;
}

.entry__logo {
  width: min(380px, 100%);
  filter: invert(1) hue-rotate(180deg);
}

.entry__kicker {
  margin: 0;
  color: #9aa09c;
  font:
    500 11px 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entry__brand h2 {
  max-width: 480px;
  margin: 18px 0;
  font:
    700 clamp(40px, 4.4vw, 64px) / 0.98 'Barlow Condensed',
    sans-serif;
}

.entry__lead {
  max-width: 420px;
  margin: 0;
  color: #b9bdb8;
  font-size: 15px;
  line-height: 1.55;
}

.entry__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.entry__language {
  position: absolute;
  top: 36px;
  right: 48px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 80px;
  height: 32px;
  padding: 3px;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: #fff;
  font:
    700 12px 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* ES / EN: a sliding switch; the dark knob sits under the language shown. */
.entry__language::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink, #17191c);
  transition: transform 180ms ease;
}

.entry__language[data-language-active='en']::before {
  transform: translateX(100%);
}

.entry__language-option {
  position: relative;
  z-index: 1;
  color: var(--muted);
  text-align: center;
  transition: color 180ms ease;
}

.entry__language[data-language-active='es'] [data-language-option='es'],
.entry__language[data-language-active='en'] [data-language-option='en'] {
  color: #fff;
}

.entry__card {
  width: min(380px, 100%);
}

.entry__card .entry__kicker {
  color: var(--muted);
}

.entry__card h1 {
  margin: 10px 0 8px;
  font:
    700 44px / 1 'Barlow Condensed',
    sans-serif;
}

.entry__copy {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.entry__go {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

button.entry__go {
  width: 100%;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

button.entry__go:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* The sign-in form (login.html) in the entrance page's look. */
.entry__form {
  display: grid;
  gap: 16px;
}

.entry__field {
  display: grid;
  gap: 6px;
}

.entry__field span {
  color: var(--muted);
  font:
    500 11px 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry__field input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.entry__field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.entry__error {
  margin: 0;
  color: var(--sig);
  font-size: 13px;
}

.entry__go:focus-visible {
  outline: 2px solid var(--sig);
  outline-offset: 2px;
}

.entry__note {
  margin: 18px 0 0;
  color: var(--muted);
  font:
    400 11px / 1.6 'IBM Plex Mono',
    monospace;
}

.entry__note i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sig);
}

@media (max-width: 800px) {
  .entry {
    grid-template-columns: 1fr;
  }

  .entry__brand {
    padding: 32px 28px;
  }

  /* The ES / EN switch gets its own row above the card. */
  .entry__panel {
    padding: 72px 24px 32px;
  }

  .entry__language {
    top: 24px;
    right: 24px;
  }
}
