:root {
  --green: #004700;
  --green-dark: #003300;
  --ink: #111;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, #f2f6f2 0%, transparent 50%),
    linear-gradient(160deg, #e6ece6 0%, #d5ddd5 100%);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.gate {
  width: min(420px, 100%);
}

.gate-card {
  background: #fff;
  border: 1px solid rgba(0, 71, 0, 0.18);
  box-shadow: 0 16px 40px rgba(20, 50, 30, 0.12);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}

.gate-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.gate-brand {
  margin: 0 0 0.85rem;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

h1 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.gate-copy {
  margin: 0 0 1.35rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}

.gate-form {
  text-align: left;
}

.gate-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.id-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #222;
  background: #fff;
}

.id-prefix {
  display: grid;
  place-items: center;
  padding: 0 0.65rem;
  background: #f3f7f4;
  font-weight: 700;
  color: #222;
  border-right: 1px solid #ccc;
  white-space: nowrap;
}

.id-row input {
  flex: 1;
  border: none;
  outline: none;
  font: 700 1.05rem/1.2 Arial, Helvetica, sans-serif;
  padding: 0.75rem 0.7rem;
  min-width: 0;
}

.gate-form button {
  width: 100%;
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--green);
  color: #fff;
  font: 700 1rem/1 Arial, Helvetica, sans-serif;
  padding: 0.95rem 1rem;
  margin-top: 1rem;
}

.gate-form button:hover:not(:disabled) {
  background: var(--green-dark);
}

.gate-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.gate-status {
  margin: 0.85rem 0 0;
  min-height: 1.3em;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.gate-status.is-error {
  color: #9b1c1c;
}
