/* Tugg Line brand palette (from Brand Sheet 2023) */
:root {
  --navy: #003751;
  --light-blue: #b6d8f2;
  --copper: #be8864;
  --oatmeal: #f0ebe5;

  --copper-dark: #a9764f;
  --navy-soft: rgba(0, 55, 81, 0.7);
  --ring: rgba(0, 55, 81, 0.25);

  --error: #b3402f;
  --success: #2f7d57;

  /* Brand font is "Lowdrag Extended" (all caps). Add the licensed web font with
     an @font-face block, then prepend it to this stack. Zilla Slab is the fallback. */
  --font-display: "Zilla Slab", "Lowdrag Extended", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background:
    radial-gradient(1100px 600px at 82% -8%, rgba(182, 216, 242, 0.55), transparent 60%),
    radial-gradient(900px 520px at -8% 108%, rgba(190, 136, 100, 0.18), transparent 55%),
    var(--oatmeal);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap {
  position: relative;
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card */
.card {
  text-align: center;
}

.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: clamp(160px, 45vw, 240px);
  height: auto;
  /* Logo art is on white; this tucks it onto an intentional rounded tile so it
     sits cleanly on the oatmeal background. */
  background: #fff;
  padding: 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(0, 55, 81, 0.35);
  margin-bottom: clamp(1.5rem, 5vh, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.lede {
  color: var(--navy-soft);
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  max-width: 42ch;
  margin: 0 auto 2rem;
}

/* Form */
.signup {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 28rem;
  margin: 0 auto;
}

.signup input {
  flex: 1 1 13rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(0, 55, 81, 0.2);
  border-radius: 0.65rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup input::placeholder {
  color: rgba(0, 55, 81, 0.4);
}

.signup input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--ring);
}

.signup button {
  padding: 0.85rem 1.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--oatmeal);
  background: var(--copper);
  border: none;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.signup button:hover {
  background: var(--copper-dark);
}

.signup button:active {
  transform: translateY(1px);
}

.note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.note.error {
  color: var(--error);
}

.note.success {
  color: var(--success);
}

/* Footer — pinned to the bottom so it doesn't pull the card off-center */
.foot {
  position: absolute;
  left: clamp(1.5rem, 5vw, 3rem);
  right: clamp(1.5rem, 5vw, 3rem);
  bottom: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--navy-soft);
  font-size: 0.85rem;
}

.foot a {
  color: var(--navy-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.foot a:hover {
  color: var(--navy);
}
