/* ============================================================
   GGMax — style.css (globais, login, registro/wizard)
   Tema dark premium: gradiente profundo, glows, grid e vidro.
   ============================================================ */

:root {
  --primary-blue:   #0A1F44;
  --secondary-blue: #00A8E8;
  --blue-lite:      #6FD6FF;
  --bg-light:       #F0F8FF;
  --white:          #FFFFFF;
  --black:          #000000;
  --danger:         #FF6B6B;
  --success:        #4CD97B;
  --warn:           #FFC857;
  --gray:           #9FB3C8;
  --radius:         12px;
  --glass-bg:       rgba(255, 255, 255, 0.05);
  --glass-border:   rgba(255, 255, 255, 0.1);
  --font: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(55vmax 55vmax at -10% -15%, rgba(0, 168, 232, 0.14), transparent 60%),
    radial-gradient(65vmax 65vmax at 115% 115%, rgba(0, 168, 232, 0.10), transparent 60%),
    linear-gradient(160deg, #0A1F44 0%, #071228 45%, #020409 100%);
  background-attachment: fixed;
}

/* grid tecnológico sutil atrás do conteúdo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 30%, transparent 78%);
}

img { max-width: 100%; display: block; }
a   { color: var(--secondary-blue); }

.hidden { display: none !important; }

/* ---------- Barra superior (vidro) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 31, 68, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 1rem;
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span {
  background: linear-gradient(120deg, var(--secondary-blue), var(--blue-lite));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-lite);
  border: 1px solid rgba(0, 168, 232, 0.35);
  background: rgba(0, 168, 232, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.footer {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--glass-border);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  min-height: 50px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

/* sólido premium (gradiente + glow) */
.btn-primary,
.btn-secondary {
  background: linear-gradient(135deg, #00A8E8 0%, #33C1FF 100%);
  color: var(--primary-blue);
  box-shadow: 0 10px 30px -8px rgba(0, 168, 232, 0.5);
}
.btn-primary:hover,
.btn-secondary:hover { box-shadow: 0 16px 38px -8px rgba(0, 168, 232, 0.65); }

/* ghost */
.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary-blue);
  color: var(--white);
}
.btn-outline:hover { background: rgba(0, 168, 232, 0.12); }

.btn-block { display: block; width: 100%; }

.btn-ghost-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.btn-ghost-link:hover { color: var(--white); }

/* ---------- Formulários ---------- */
label {
  display: block;
  margin: 0.95rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}
label small { font-weight: 400; opacity: 0.75; }

input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
input::placeholder { color: rgba(255, 255, 255, 0.35); }
input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.18);
}

/* ---------- Alertas e status ---------- */
.alert {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 0.75rem 0;
}
.alert-error {
  background: rgba(211, 47, 47, 0.14);
  color: #FFB4AB;
  border: 1px solid rgba(255, 107, 107, 0.45);
}

.status-box {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0.9rem 0 1.25rem;
  font-size: 0.95rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--gray);
}
.status-box p { margin: 0.4rem 0 0; }
.status-pendente { border-left-color: var(--warn); background: rgba(255, 200, 87, 0.07); }
.status-aprovado { border-left-color: var(--success); background: rgba(76, 217, 123, 0.07); }
.status-recusado { border-left-color: var(--danger); background: rgba(255, 107, 107, 0.07); }
.status-label { color: var(--gray); margin-top: -0.4rem; }

/* ---------- Cards de autenticação (vidro) ---------- */
.auth-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 2rem 1.4rem;
  max-width: 440px;
  margin: 1.75rem auto;
}
.card-wide { max-width: 560px; }

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-lite);
  border: 1px solid rgba(0, 168, 232, 0.35);
  background: rgba(0, 168, 232, 0.08);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}

.auth-title {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.auth-sub {
  margin: 0 0 1.25rem;
  color: var(--gray);
  font-size: 0.92rem;
}
.auth-links {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ============================================================
   WIZARD DE REGISTRO
   ============================================================ */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gray);
  opacity: 0.65;
  font-size: 0.78rem;
  white-space: nowrap;
}
.wizard-step .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--gray);
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.wizard-step.active { color: var(--white); opacity: 1; font-weight: 600; }
.wizard-step.active .dot {
  background: linear-gradient(135deg, #00A8E8, #33C1FF);
  color: var(--primary-blue);
  border-color: transparent;
  box-shadow: 0 6px 18px -4px rgba(0, 168, 232, 0.6);
}

.wizard-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.wizard-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00A8E8, #6FD6FF);
  box-shadow: 0 0 10px rgba(0, 168, 232, 0.7);
  transition: width 0.4s ease;
}

.kyc-titulo {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: var(--white);
}
.kyc-instructions {
  background: rgba(0, 168, 232, 0.08);
  border: 1px solid rgba(0, 168, 232, 0.25);
  color: var(--blue-lite);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

/* ---------- Áreas de upload ---------- */
.upload-box {
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.upload-box:has(.upload-preview:not(.hidden)) {
  border-color: rgba(0, 168, 232, 0.45);
  background: rgba(0, 168, 232, 0.04);
}
.upload-title { margin: 0; font-weight: 700; color: var(--white); font-size: 0.95rem; }
.upload-hint  { margin: 0.15rem 0 0.75rem; font-size: 0.8rem; color: var(--gray); }

.upload-preview {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
}
.upload-btn { margin-top: 0.5rem; min-height: 46px; }

.ok-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E7D32, #4CD97B);
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(76, 217, 123, 0.6);
}

/* ---------- Telas maiores ---------- */
@media (min-width: 600px) {
  .page { padding: 2.5rem 1.5rem 3rem; }
  .auth-card { padding: 2.5rem 2.25rem; }
}

/* movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
