/* ============================================================
   Cadastro QuantEdge — visual espelhado do login
   ============================================================ */
:root {
  --navy: #10233F;
  --navy-deep: #0B1A31;
  --navy-line: #1B3358;
  --blue: #1769E8;
  --blue-dark: #0B4CCB;
  --white: #FFFFFF;

  --text: #10233F;
  --text-muted: #55627A;
  --text-soft: #64748B;
  --text-on-dark: #8FA8C8;

  --border: #E8EDF5;
  --field: #F8FAFC;

  --danger: #DC2626;
  --success: #059669;

  --shadow-blue: 0 10px 26px rgba(23, 105, 232, 0.32);
  --shadow-card: 0 28px 64px rgba(5, 14, 28, 0.42);

  --radius-btn: 8px;
  --radius-card: 18px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(23, 105, 232, 0.28), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, var(--navy-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--navy-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}

.auth {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 44px 40px 36px;
}

.brand {
  display: block;
  margin: 0 auto 30px;
  width: 168px;
}

.card-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 8px;
}

.card-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.field { margin-bottom: 18px; }

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.input::placeholder { color: #9AA7BD; }
.input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 232, 0.12);
}

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.toggle-password {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: var(--text-soft);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.toggle-password:hover { color: var(--blue); background: #EEF4FF; }

/* Checkbox de aceite legal obrigatório para concluir cadastro. */
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.18s ease;
}
.link:hover { color: var(--blue-dark); text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(23, 105, 232, 0.42);
}
.btn:disabled { opacity: 0.65; pointer-events: none; }

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.message {
  display: none;
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
}
.message.is-visible { display: block; }
.message.is-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: var(--danger);
}
.message.is-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: var(--success);
}

/* Selo informativo solicitado abaixo do formulário. */
.security-badge {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: #F8FAFF;
  color: #294A76;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark);
  transition: color 0.18s ease;
}
.back:hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  .btn:hover { transform: none; }
}

@media (max-width: 480px) {
  .card { padding: 34px 24px 28px; }
  .brand { width: 148px; }
}
