:root {
  --navy: #0c2744;
  --navy-light: #263f5b;
  --orange: #e18222;
  --paper: #f4f1ec;
  --ink: #293445;
  --muted: #6d7785;
  --line: #d9dee5;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  margin: 0;
  padding: 32px 16px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  font-family: "Nunito Sans", Arial, sans-serif;
}

.auth-shell {
  width: min(100%, 510px);
}

.auth-brand {
  display: block;
  margin: 0 auto 22px;
  color: var(--orange);
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.auth-card {
  padding: clamp(28px, 6vw, 48px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: "DM Serif Text", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
}

.auth-card > p {
  margin: 0 0 28px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: .87rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fafbfc;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(225, 130, 34, .25);
  border-color: var(--orange);
}

.check-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: .9rem;
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.check-row label {
  color: var(--muted);
  font-weight: 400;
}

.button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 14px 18px;
  color: #fff;
  background: var(--orange);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: #c96e16;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .9rem;
}

.auth-links a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.auth-message {
  display: none;
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 4px;
  color: #155724;
  background: #d4edda;
  font-size: .9rem;
}

.auth-message.visible {
  display: block;
}

.auth-message.error {
  color: #842029;
  background: #f8d7da;
}

.button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .auth-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
