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

:root {
  --green:       #2A6034;
  --green-dark:  #1C4225;
  --green-light: #3a7d46;
  --yellow:      #F9C23C;
  --yellow-soft: #fdf0c2;
  --white:       #ffffff;
  --off-white:   #f8f7f3;
  --text-muted:  #7a8c7a;
  --border:      #d4e0d5;
  --danger:      #c0392b;
  --danger-soft: #fdf0ef;
}

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

body::before {
  content: '';
  position: fixed;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,96,52,.1) 0%, transparent 70%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -180px; right: -180px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,194,60,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Card */
.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(42,96,52,.12), 0 2px 12px rgba(0,0,0,.06);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  animation: fadeUp .55s ease both;
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Green top */
.card-top {
  background: var(--green);
  padding: 30px 40px 26px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.card-top::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.06);
  bottom: -80px; right: -60px;
}
.card-top::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 24px solid rgba(249,194,60,.1);
  top: -30px; left: -30px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.logo-svg { width: 42px; height: 48px; }

.logo-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  text-align: left;
  line-height: 1.1;
}
.logo-wordmark span {
  display: block;
  font-size: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

.key-wrap {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
.key-icon {
  width: 54px; height: 54px;
  background: rgba(249,194,60,.18);
  border: 2px solid rgba(249,194,60,.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Body */
.card-body {
  padding: 34px 40px 38px;
}

.card-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 8px;
}

.card-body .subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 26px;
}

/* Staff notice */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--yellow-soft);
  border: 1px solid #e8d88a;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: #7a6010;
  line-height: 1.5;
}
.notice-bar svg { flex-shrink: 0; margin-top: 1px; }

/* Alert */
.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 8px;
}
.alert.error   { background: var(--danger-soft); border: 1px solid #e8b0aa; color: var(--danger); display: flex; }
.alert.success { background: #edf7f0; border: 1px solid #a8d8b3; color: var(--green-dark); display: flex; }

/* Fields */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 7px;
}

.field-wrap { position: relative; }

.field-wrap .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.field input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--green-dark);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #b0bdb0; }
.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(42,96,52,.12);
}

/* reCAPTCHA wrapper — centre it */
.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 22px 0;
}

/* Submit */
.btn-reset {
  width: 100%;
  padding: 15px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(42,96,52,.28);
  letter-spacing: .3px;
}
.btn-reset::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-reset:hover { background: var(--green-dark); box-shadow: 0 6px 24px rgba(42,96,52,.38); transform: translateY(-1px); }
.btn-reset:hover::after { transform: translateX(100%); }
.btn-reset:active { transform: translateY(0); }
.btn-reset:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-reset .arrow { display: inline-block; margin-left: 8px; transition: transform .2s; }
.btn-reset:hover .arrow { transform: translateX(4px); }

/* Back */
.back-row {
  text-align: center;
  margin-top: 20px;
}
.back-row a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.back-row a:hover { color: var(--green); }

@media (max-width: 480px) {
  .card { border-radius: 16px; }
  .card-top { padding: 24px 26px 20px; }
  .card-body { padding: 26px 22px 30px; }
}