:root {
  --green: #0e4a35;
  --green-dark: #0a3528;
  --cream: #fff8ea;
  --gold: #f1b84d;
  --ink: #10231d;
  --line: rgba(255, 248, 234, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(10, 53, 40, 0.92), rgba(14, 74, 53, 0.98)),
    var(--green);
  color: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
}

.site-header {
  position: fixed;
  top: 26px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 10;
}

.brand,
.header-link {
  color: var(--cream);
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cream);
  color: var(--green);
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 248, 234, 0.72);
}

.header-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.08);
  font-weight: 800;
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 24px 48px;
}

.portal-card {
  width: min(760px, 100%);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 248, 234, 0.96);
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro {
  margin: 0 0 28px;
  max-width: 620px;
  color: #3d4f48;
  font-size: 18px;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 10px;
}

label {
  color: #20352d;
  font-size: 14px;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
}

input,
button {
  min-height: 56px;
  border-radius: 8px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #c7d1cc;
  background: #fff;
  color: var(--ink);
  padding: 0 16px;
  font-size: 18px;
}

input:focus {
  outline: 3px solid rgba(241, 184, 77, 0.42);
  border-color: var(--gold);
}

button {
  border: 0;
  background: #111a15;
  color: var(--gold);
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  color: #ffd37a;
}

.message {
  margin: 8px 0 0;
  color: #9f2f2f;
  font-weight: 800;
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    padding: 18px;
  }

  main {
    min-height: auto;
    padding: 28px 18px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }
}
