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

:root {
  --gold:      #C9962A;
  --gold-lt:   #E8B84B;
  --gold-dim:  rgba(201,150,42,0.18);
  --ink:       #08090C;
  --ink-soft:  #1A1D26;
  --ink-mid:   #252937;
  --surface:   #181B24;
  --border:    rgba(201,150,42,0.22);
  --text-hi:   #FFFFFF;
  --text-lo:   #7A7D8C;
  --text-mid:  #D0D4E3;
  --red:       #E05252;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── CANVAS ── */
.canvas {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── LEFT ── */
.left {
  position: relative;
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  overflow: hidden;
}

/* decorative SVG layer */
.left-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.left-deco svg {
  width: 100%; height: 100%;
}

/* gradient blob */
.left::before {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201,150,42,0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
.left::after {
  content: '';
  position: absolute;
  top: -80px; left: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201,150,42,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite reverse;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%        { transform: scale(1.1); opacity: 0.7; }
}

.left-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-ring {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--ink-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201,150,42,0.07);
}
.logo-ring img { width: 32px; height: 32px; object-fit: contain; }
.org-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.org-label span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-hi);
  text-transform: none;
  letter-spacing: 0;
}

.left-body {
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

.panel-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-hi);
  margin-bottom: 28px;
}
.panel-heading em {
  font-style: italic;
  color: var(--gold-lt);
}

.divider-line {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 24px;
  border-radius: 2px;
}

.panel-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 360px;
  margin-bottom: 48px;
}

.stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
  max-width: 380px;
}
.stat-item {
  flex: 1;
  padding: 20px 22px;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-lo);
  font-weight: 500;
}

.left-foot {
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: var(--text-lo);
  letter-spacing: 0.02em;
}

/* ── RIGHT ── */
.right {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
}

/* subtle grid texture */
.right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,150,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,150,42,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── FORM CARD (STARK CONTRAST UPDATE) ── */
.form-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 24px;
  padding: 48px 44px;
  
  /* 3-Tier Shadow: Crisp outer edge, deep black base, gold glow */
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 25px 50px -12px rgba(0, 0, 0, 1),
    0 0 45px rgba(201, 150, 42, 0.35);
    
  animation: cardUp 0.6s var(--transition) both;
}
@keyframes cardUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* glint line top */
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  border-radius: 0 0 2px 2px;
}

.form-header {
  margin-bottom: 36px;
}
.portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,150,42,0.4);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 18px;
}
.portal-tag svg { width: 11px; height: 11px; }

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.2;
  margin-bottom: 8px;
}
.form-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* fields */
.field-group {
  margin-bottom: 20px;
  animation: fadeUp 0.5s var(--transition) both;
}
.field-group:nth-child(1) { animation-delay: 0.15s; }
.field-group:nth-child(2) { animation-delay: 0.22s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM LABELS (HIGH VISIBILITY UPDATE) ── */
.field-label {
  display: block;
  font-size: 13px; 
  font-weight: 800; /* Heavier weight for visibility */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF; /* Pure white for maximum contrast */
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Forces the text to lift off the form body */
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-wrap .f-icon {
  position: absolute;
  left: 16px;
  width: 16px; height: 16px;
  color: var(--text-mid);
  pointer-events: none;
  transition: color 0.2s;
  flex-shrink: 0;
}
.field-wrap:focus-within .f-icon {
  color: var(--gold);
}

/* ── FORM FIELDS (THE ANCHOR UPDATE) ── */
.field-input {
  width: 100%;
  background: #000000; /* Pitch black */
  border: 1px solid rgba(255, 255, 255, 0.35); /* Bright, distinct outline */
  border-radius: 12px;
  padding: 14px 16px 14px 46px;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  color: #FFFFFF;
  outline: none;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.9); /* Inner depth to sink the field */
  transition: border-color 0.25s var(--transition), box-shadow 0.25s var(--transition);
}

.field-input::placeholder { color: var(--text-mid); font-size: 14px; } 

.field-input:focus {
  border-color: var(--gold-lt);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.4), 
    0 0 0 4px rgba(201, 150, 42, 0.25); /* Glow jumps to the input when active */
}

.toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-mid);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-radius: 6px;
}
.toggle-pw:hover { color: var(--gold-lt); }
.toggle-pw svg { width: 17px; height: 17px; }

/* error banner */
.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(224,82,82,0.15);
  border: 1px solid rgba(224,82,82,0.4);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #FFA5A5;
  line-height: 1.5;
  animation: fadeUp 0.3s var(--transition) both;
}
.error-banner svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #FF7070; }
  
/* success banner */
.success-banner {
  background: #e6ffed;
  border: 1px solid #2ecc71;
  color: #1e7e34;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.success-banner svg {
  width: 20px;
  height: 20px;
}

/* submit */
.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--gold-lt) 0%, #A8781A 100%);
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--transition), box-shadow 0.2s var(--transition), filter 0.2s;
  box-shadow: 0 6px 20px rgba(201,150,42,0.4);
  animation: fadeUp 0.5s var(--transition) 0.3s both;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,150,42,0.5);
  filter: brightness(1.1);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit svg { width: 18px; height: 18px; }

/* spinner state */
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .spinner { display: block; }
.spinner {
  display: none;
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #0D0F14;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.7;
}
.form-note a {
  color: var(--gold-lt);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.form-note a:hover { color: #FFF; text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .canvas { grid-template-columns: 1fr; }
  .left { display: none; }
  .right { padding: 32px 20px; min-height: 100vh; }
  .form-card { padding: 36px 28px; }
}