:root{
  /* Your brand greens */
  --bg1: #8effc1;
  --bg2: #0dac50;

  /* UI colors */
  --text: #063b27;
  --muted: rgba(6,59,39,.70);

  --card: rgba(255,255,255,.82);
  --card2: rgba(255,255,255,.68);

  --primary: #0dac50;
  --primary2: #0a8a41;

  --danger: #e53935;

  --border: rgba(6,59,39,.14);
  --shadow: 0 20px 55px rgba(0,0,0,.22);

  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);

  /* ✅ True center layout */
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;

  /* Background */
  background:
    radial-gradient(1100px 700px at 18% 12%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(900px 650px at 85% 30%, rgba(0,0,0,.10), transparent 60%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow:hidden;
  padding: 18px; /* keeps spacing on small screens */
}

/* TAC logo watermark (put tac-logo.png inside /style/) */
body::before{
  content:"";
  position:fixed;
  inset:-40px;
  pointer-events:none;

  background-image: url("../img/tac.png");
  background-repeat:no-repeat;
  background-position: center;
  background-size: clamp(420px, 55vw, 720px);

  opacity:.18; /* ✅ more solid */
  transform: rotate(-6deg);
  filter: saturate(1.15) contrast(1.08);
}



/* soft vignette for depth */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 600px at 50% 110%, rgba(0,0,0,.10), transparent 70%);
}

.form-container{
  position:relative;
  z-index:1;

  width: min(460px, 100%);
  padding: 22px 20px 18px;

  border-radius: 18px;

  /* ✅ glass background */
  background: rgba(255,255,255,.42);

  /* ✅ thin highlight border */
  border: 1px solid rgba(255,255,255,.38);

  /* ✅ deep shadow + glass blur */
  box-shadow: 0 20px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  overflow:hidden; /* required for shine */
}

/* ✅ subtle inner highlight */
.form-container::before{
  content:"";
  position:absolute;
  inset: 1px;
  border-radius: 17px;
  pointer-events:none;

  /* inner glow edge */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 0 rgba(255,255,255,.10);
}

/* ✅ subtle shine streak */
.form-container::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-40%;
  width: 180%;
  height: 180%;
  pointer-events:none;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,.00) 35%,
    rgba(255,255,255,.28) 48%,
    rgba(255,255,255,.06) 60%,
    rgba(255,255,255,.00) 72%
  );

  transform: rotate(-12deg);
  opacity: .55;
}


@keyframes pop{
  from { transform: translateY(10px); opacity:0; }
  to   { transform: translateY(0);   opacity:1; }
}

h2{
  margin:0 0 12px;
  font-size:22px;
  font-weight: 900;
  letter-spacing:.2px;
  color:#052f1f;
}

p{
  margin: 10px 0 0;
  font-size:13px;
  color: var(--muted);
}

/* error message */
.error{
  background: rgba(229,57,53,.12);
  border: 1px solid rgba(229,57,53,.38);
  color: #7a1d1a;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 0 0 12px;
  font-weight: 800;
}

form{
  display:grid;
  gap: 12px;
  margin-top: 8px;
}

input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(6,59,39,.18);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline:none;

  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder{ color: rgba(6,59,39,.45); }

input:focus{
  border-color: rgba(13,172,80,.75);
  box-shadow: 0 0 0 4px rgba(13,172,80,.22);
}

/* button */
button{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(6,59,39,.16);

  background: linear-gradient(180deg, #21e07f, var(--primary));
  color: #053021;

  font-weight: 950;
  letter-spacing:.2px;
  cursor:pointer;

  box-shadow: 0 16px 30px rgba(6,59,39,.18);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}

button:hover{
  box-shadow: 0 20px 40px rgba(6,59,39,.22);
  filter: brightness(1.02);
}

button:active{ transform: translateY(1px); }

/* links */
a{
  color: #064e3b;
  font-weight: 900;
  text-decoration:none;
}

a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* small screens */
@media (max-width: 520px){
  .form-container{
    padding: 20px 16px 16px;
  }
  h2{ font-size:20px; }
}

.brand-logo{
  display:block;
  width: 92px;
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
  user-select:none;
}