:root{
  --bg: #F7FFF9;          /* soft light background */
  --accent: #34D399;      /* modern mint/green */
  --accent-2: #10B981;    /* deeper accent */
  --text: #064E3B;        /* darkest readable green */
  --text-soft: #0b5c46;
  --ring: rgba(52,211,153,0.35);
}

*{ box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial;
  line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  height: 100%;
}
body { min-height: 100vh; }

.stage{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 32px);
}

/* Shared card look (home + form) */
.card{
  width: min(640px, 92vw);
  aspect-ratio: 16/10;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(6,78,59,0.12);
  background: radial-gradient(120% 120% at 0% 0%, #ECFDF5 0%, #E6FFF4 40%, #D1FAE5 100%);
  box-shadow:
    0 10px 25px rgba(6,79,59,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.65);
  isolation: isolate;
}

/* Animated green palette glow (subtle) */
.card::before{
  content:""; position:absolute; inset:-20%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #059669, var(--accent));
  animation: hue 16s linear infinite;
  filter: blur(55px) opacity(0.24); z-index:-1;
}
@keyframes hue { to { transform: rotate(1turn); } }

/* Gentle gloss */
.card::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,0.55), transparent 45%),
    linear-gradient(to bottom, rgba(255,255,255,0.12), transparent 28%);
  pointer-events:none; z-index:0;
}

.card-inner{
  position: relative; z-index:1;
  height:100%; width:100%;
  padding: clamp(16px, 2.6vw, 28px);
  display:grid; place-items:center;
  text-align:center;
  gap: clamp(8px, 1.6vw, 14px);
}

.brand{
  font-size: clamp(1.6rem, 1.2rem + 2.5vw, 2.2rem);
  font-weight: 900; letter-spacing: 0.4px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.subtitle{
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.8rem + 1vw, 1.1rem);
}

.cta{
  display:inline-block;
  margin-top: clamp(6px, 1.2vw, 10px);
  padding: clamp(10px, 2.2vw, 14px) clamp(16px, 3.2vw, 22px);
  text-decoration: none; font-weight: 900;
  border-radius: 999px;
  border: 1px solid rgba(6,78,59,0.18);
  background: linear-gradient(180deg, #ffffff, #EFFFF7);
  color: var(--text);
  box-shadow: 0 8px 18px var(--ring);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.cta:hover{ transform: translateY(-1px); filter: saturate(1.04); box-shadow: 0 12px 26px var(--ring); }

/* ===== Form card (larger variant) ===== */
.form-card{
  width: min(860px, 94vw);
  min-height: min(70vh, 640px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.form-head{
  font-size: clamp(1.2rem, 1rem + 1.6vw, 1.6rem);
  font-weight: 900;
  margin-top: clamp(8px, 1.4vw, 14px);
}
.form-body{
  width: 100%;
  display: grid;
  gap: clamp(10px, 1.4vw, 14px);
  margin-top: clamp(8px, 1.4vw, 14px);
  padding: 0 clamp(8px, 2vw, 18px);
}
.form-actions{
  width:100%;
  display:flex; justify-content:flex-end; gap: 12px;
  padding: clamp(10px, 1.6vw, 16px);
}

/* Inputs styled for the green card */
input[type="text"], input[type="email"], select{
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(6,78,59,0.18);
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
select{ background-image: linear-gradient(180deg, #ffffff, #f4fff8); }

button{
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(6,78,59,0.18);
  background: linear-gradient(180deg, #ffffff, #EFFFF7);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px var(--ring);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
button:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px var(--ring); }

/* Fades */
.fade-in { animation: fadeIn 320ms ease forwards; opacity: 0; }
.fade-out { animation: fadeOut 220ms ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* Mobile tuning */
@media (max-width: 480px) {
  .card{ aspect-ratio: auto; padding: 0; }
  .card-inner{ padding: 18px; gap: 8px; }
  .form-card{ min-height: auto; }
}
