/* ============================================================
   ganar.win — Register page (premium dark fintech, matches login-modal.css)
   Scoped under .gw-reg-* / .gw-* to avoid Bootstrap conflicts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300..700&family=Geist:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* Hoist tokens to :root in case login-modal.css isn't loaded */
:root{
  --gw-bg-card: #0F1424;
  --gw-bg-card-2: #131A2E;
  --gw-bg-brand: #0B1226;
  --gw-neon: #00FFA8;
  --gw-neon-deep: #00B377;
  --gw-neon-soft: rgba(0, 255, 168, 0.14);
  --gw-gold: #F4C660;
  --gw-text: #F2F4F8;
  --gw-text-dim: #7B85A0;
  --gw-text-muted: #4A5169;
  --gw-border: rgba(255, 255, 255, 0.06);
  --gw-border-bright: rgba(0, 255, 168, 0.25);
}

/* Override the white Bootstrap wrapper for the register page */
.gw-reg-host{
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.gw-reg-host #blue-box{ display: none !important; }

/* === Shell === */
.gw-reg-shell{
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  background: linear-gradient(180deg, var(--gw-bg-card-2) 0%, var(--gw-bg-card) 100%);
  border: 1px solid var(--gw-border);
  border-radius: 22px;
  overflow: hidden;
  font-family: 'Geist', system-ui, sans-serif;
  color: var(--gw-text);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.05);
  margin: 24px 0;
  text-align: left;
  animation: gwRegIn .6s cubic-bezier(.2,.9,.2,1);
}
@keyframes gwRegIn{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* Subtle grain overlay across whole shell */
.gw-reg-shell::after{
  content:'';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* === LEFT: Brand panel === */
.gw-reg-brand{
  position: relative;
  padding: 48px 40px;
  background: linear-gradient(165deg, var(--gw-bg-brand) 0%, #06080F 100%);
  border-right: 1px solid var(--gw-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}
.gw-reg-brand::before{
  content:'';
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--gw-neon-soft), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: gwPulse 8s ease-in-out infinite;
}
@keyframes gwPulse{
  0%,100%{ opacity: 0.5; transform: scale(1); }
  50%{ opacity: 0.9; transform: scale(1.15); }
}
.gw-reg-brand > *{ position: relative; z-index: 1; }

.gw-reg-mark-wrap{
  display: flex;
  margin-bottom: 28px;
}
.gw-reg-mark{
  position: relative;
  width: 76px; height: 76px;
  display: grid; place-items: center;
}
.gw-reg-mark::before{
  content:'';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--gw-neon), #14B8E0 25%, #7C5BFF 50%, var(--gw-neon) 75%, var(--gw-neon));
  z-index: 0;
  animation: gwSpin 14s linear infinite;
  filter: blur(0.5px);
}
.gw-reg-mark::after{
  content:'';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--gw-bg-brand);
  z-index: 1;
}
@keyframes gwSpin{ to{ transform: rotate(360deg); } }
.gw-reg-mark img{
  position: relative; z-index: 2;
  width: 66px; height: 66px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 255, 168, 0.25));
}

.gw-reg-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 255, 168, 0.08);
  border: 1px solid rgba(0, 255, 168, 0.18);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gw-neon);
  margin-bottom: 18px;
  width: fit-content;
}
.gw-reg-eyebrow::before{
  content:''; width: 6px; height: 6px;
  background: var(--gw-neon); border-radius: 50%;
  box-shadow: 0 0 8px var(--gw-neon);
  animation: gwBlink 1.5s ease-in-out infinite;
}
@keyframes gwBlink{ 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.gw-reg-title{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--gw-text);
}
.gw-reg-title em{
  font-style: italic;
  font-weight: 500;
  color: var(--gw-neon);
}
.gw-reg-sub{
  font-size: 14px;
  color: var(--gw-text-dim);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 320px;
}

/* Benefits list */
.gw-benefits{
  list-style: none;
  padding: 0; margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gw-benefits li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--gw-text);
  line-height: 1.45;
}
.gw-benefits li .gw-bullet{
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(0, 255, 168, 0.08);
  border: 1px solid rgba(0, 255, 168, 0.2);
  display: grid; place-items: center;
  color: var(--gw-neon);
  margin-top: 1px;
}
.gw-benefits li b{
  font-weight: 500;
  color: var(--gw-text);
}
.gw-benefits li small{
  display: block;
  color: var(--gw-text-dim);
  font-size: 12px;
  margin-top: 2px;
}

/* Trust footer */
.gw-trust-row{
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gw-border);
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gw-text-muted);
}
.gw-trust-row .gw-dot{
  width: 6px; height: 6px;
  background: var(--gw-neon);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* === RIGHT: Form panel === */
.gw-reg-form{
  position: relative;
  padding: 48px 44px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(0,255,168,0.04), transparent 60%),
    transparent;
  z-index: 1;
}

.gw-reg-form-eyebrow{
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gw-text-muted);
  margin-bottom: 10px;
}
.gw-reg-form-title{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--gw-text);
}
.gw-reg-form-title em{
  font-style: italic;
  color: var(--gw-neon);
  font-weight: 400;
}
.gw-reg-form-sub{
  font-size: 13px;
  color: var(--gw-text-dim);
  margin: 0 0 28px;
}

/* PHP error slot */
.gw-reg-form .alert{
  background: rgba(255, 71, 87, 0.08) !important;
  border: 1px solid rgba(255, 71, 87, 0.25) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
  color: #FF8B95 !important;
  font-family: 'JetBrains Mono', monospace !important;
  margin-bottom: 16px !important;
  text-align: left !important;
}
.gw-reg-form .alert-success{
  background: rgba(0, 255, 168, 0.08) !important;
  border-color: rgba(0, 255, 168, 0.3) !important;
  color: var(--gw-neon) !important;
}

/* Field grid */
.gw-reg-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
  margin-bottom: 18px;
}
.gw-reg-grid .gw-field-full{ grid-column: 1 / -1; }

.gw-field-label{
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gw-text-muted);
  margin-bottom: 7px;
}

.gw-input-wrap{ position: relative; }
.gw-input-wrap input,
.gw-input-wrap select{
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--gw-border);
  border-radius: 11px;
  padding: 13px 14px 13px 42px;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 14px;
  color: var(--gw-text);
  outline: none;
  transition: all .25s ease;
  box-shadow: none;
  height: auto;
  line-height: normal;
  appearance: none;
  -webkit-appearance: none;
}
.gw-input-wrap select{
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%237B85A0' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.gw-input-wrap select option{
  background: var(--gw-bg-card-2);
  color: var(--gw-text);
}
.gw-input-wrap input::placeholder{ color: var(--gw-text-muted); }
.gw-input-wrap input:focus,
.gw-input-wrap select:focus{
  border-color: var(--gw-neon);
  background: rgba(0,255,168,0.04);
  box-shadow: 0 0 0 4px rgba(0,255,168,0.08);
}
/* Validation states from existing JS (is-valid, is-invalid) */
.gw-input-wrap input.is-valid{
  border-color: var(--gw-neon) !important;
}
.gw-input-wrap input.is-invalid{
  border-color: #FF4757 !important;
  background: rgba(255, 71, 87, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.08) !important;
}

.gw-input-icon{
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gw-text-muted);
  width: 16px; height: 16px;
  display: grid; place-items: center;
  pointer-events: none;
  transition: color .25s ease;
}
.gw-input-wrap:focus-within .gw-input-icon{ color: var(--gw-neon); }

/* Captcha row */
.gw-captcha-row{
  margin: 18px 0;
}
.gw-captcha-row > p{ margin: 0; }

/* Newsletter checkbox */
.gw-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: var(--gw-text-dim);
  margin: 16px 0 22px;
  line-height: 1.4;
}
.gw-check input[type="checkbox"]{ display: none !important; }
.gw-check .gw-box{
  width: 16px; height: 16px;
  border: 1px solid var(--gw-border);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  position: relative;
  flex-shrink: 0;
  transition: all .2s ease;
  margin-top: 1px;
}
.gw-check .gw-box::after{
  content:''; position: absolute; inset: 3px;
  background: var(--gw-neon); border-radius: 1px;
  opacity: 0; transform: scale(0.5);
  transition: all .2s ease;
  box-shadow: 0 0 8px var(--gw-neon);
}
.gw-check input:checked + .gw-box{
  border-color: var(--gw-neon);
  background: rgba(0,255,168,0.08);
}
.gw-check input:checked + .gw-box::after{ opacity: 1; transform: scale(1); }

/* Submit */
.gw-reg-submit{
  width: 100%;
  background: linear-gradient(180deg, var(--gw-neon), var(--gw-neon-deep));
  border: none;
  color: #001A0F;
  padding: 14px 22px;
  border-radius: 11px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
  box-shadow:
    0 6px 20px rgba(0, 255, 168, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-transform: none;
}
.gw-reg-submit:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 28px rgba(0, 255, 168, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #001A0F;
}
.gw-reg-submit:active{ transform: translateY(0); }
.gw-reg-submit::after{
  content:''; position: absolute;
  top:0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left .6s ease;
}
.gw-reg-submit:hover::after{ left: 100%; }

/* Bottom CTA */
.gw-login-cta{
  text-align: center;
  font-size: 13px;
  color: var(--gw-text-dim);
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--gw-border);
}
.gw-login-cta a{
  color: var(--gw-neon);
  text-decoration: none !important;
  font-weight: 500;
  position: relative;
  cursor: pointer;
}
.gw-login-cta a::after{
  content:''; position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gw-neon);
  transition: width .3s ease;
}
.gw-login-cta a:hover::after{ width: 100%; }

/* Responsive: stack on mobile */
@media (max-width: 880px){
  .gw-reg-shell{ grid-template-columns: 1fr; }
  .gw-reg-brand{
    padding: 32px 28px;
    border-right: none;
    border-bottom: 1px solid var(--gw-border);
  }
  .gw-reg-form{ padding: 32px 28px; }
  .gw-reg-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 480px){
  .gw-reg-mark{ width: 64px; height: 64px; }
  .gw-reg-mark img{ width: 56px; height: 56px; }
  .gw-reg-title{ font-size: 28px; }
}
