@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

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

:root {
  --gold:   #f4ce14;
  --green:  #4cbb17;
  --bg:     #060606;
  --border: rgba(255,255,255,0.08);
  --text:   #f7f7f9;
  --muted:  rgba(247,247,249,0.4);
  --error:  #f87171;
}

html, body { height: 100%; background: var(--bg); font-family: 'Nunito', sans-serif; color: var(--text); overflow: hidden; }

/* BG */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(244,206,20,.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(76,187,23,.04) 0%, transparent 60%);
  animation: meshPulse 10s ease-in-out infinite alternate;
}
@keyframes meshPulse { 0%{opacity:.6} 100%{opacity:1} }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(76,187,23,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(76,187,23,.025) 1px,transparent 1px); background-size: 48px 48px; }
.bg-noise { position: absolute; inset: 0; opacity: .03; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px; }

/* PAGE */
.page { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }

/* CARD */
.card { width: 100%; max-width: 420px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 16px; padding: 40px 36px; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--gold) 40%,var(--green) 60%,transparent); }

/* LOGO */
.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; opacity: 0; animation: fadeUp .5s ease .1s forwards; }
.logo-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-name { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.logo-sub  { font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-top: 1px; }

/* ICON */
.icon-wrap { width: 56px; height: 56px; border-radius: 14px; background: rgba(244,206,20,.1); border: 1px solid rgba(244,206,20,.25); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; opacity: 0; animation: fadeUp .5s ease .2s forwards; }

/* HEADER */
.card-title { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 8px; opacity: 0; animation: fadeUp .5s ease .25s forwards; }
.card-sub   { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.65; margin-bottom: 28px; opacity: 0; animation: fadeUp .5s ease .3s forwards; }

/* MESSAGES */
.msg { display: none; border-radius: 8px; padding: 10px 14px; font-size: 12px; font-weight: 700; margin-bottom: 16px; line-height: 1.5; }
.msg.error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); color: var(--error); }
.msg.success { background: rgba(76,187,23,.1);   border: 1px solid rgba(76,187,23,.3);   color: var(--green); }
.msg.show { display: block; animation: fadeUp .3s ease forwards; }

/* FIELD */
.fields { display: flex; flex-direction: column; gap: 14px; opacity: 0; animation: fadeUp .5s ease .35s forwards; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.field-input { width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 9px; padding: 11px 14px; font-family: 'Nunito',sans-serif; font-size: 13px; font-weight: 600; color: var(--text); outline: none; transition: border-color .2s,background .2s,box-shadow .2s; }
.field-input::placeholder { color: rgba(255,255,255,.18); }
.field-input:focus { border-color: rgba(244,206,20,.6); background: rgba(244,206,20,.03); box-shadow: 0 0 0 3px rgba(244,206,20,.08); }
.field-input.error { border-color: rgba(248,113,113,.5)!important; }

/* BUTTON */
.btn-submit { width: 100%; background: var(--gold); border: none; border-radius: 10px; padding: 13px; font-family: 'Nunito',sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .04em; color: #000; cursor: pointer; margin-top: 6px; transition: background .18s,transform .15s,box-shadow .18s; opacity: 0; animation: fadeUp .5s ease .4s forwards; }
.btn-submit:hover:not(:disabled)  { background: #fad832; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(244,206,20,.3); }
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.btn-submit .spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.3); border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto; }
.btn-submit.loading .btn-txt  { display: none; }
.btn-submit.loading .spinner  { display: block; }
@keyframes spin { to{transform:rotate(360deg)} }

/* BACK LINK */
.back-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; text-decoration: none; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: color .18s; opacity: 0; animation: fadeUp .5s ease .45s forwards; }
.back-link:hover { color: var(--text); }

/* SUCCESS STATE */
.success-state { display: none; text-align: center; }
.success-state.show { display: block; animation: fadeUp .4s ease forwards; }
.success-icon  { width: 64px; height: 64px; border-radius: 50%; background: rgba(76,187,23,.1); border: 1px solid rgba(76,187,23,.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-title { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.success-sub   { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.success-sub b { color: var(--text); font-weight: 700; }

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

@media (max-width: 480px) {
  html,body { overflow: auto; }
  .card { padding: 32px 24px; }
}
