:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #3b82f6;
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --gradient-soft: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-strong: #020617;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.06), 0 2px 4px -2px rgba(15,23,42,0.06);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.10), 0 8px 10px -6px rgba(15,23,42,0.10);
  --shadow-2xl: 0 25px 50px -12px rgba(15,23,42,0.20);
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --t-fast: 150ms cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--gradient-dark);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}
body::before, body::after {
  content: '';
  position: fixed;
  width: 800px; height: 800px;
  border-radius: 50%;
  pointer-events: none;
}
body::before { background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%); top: -300px; left: -300px; }
body::after { background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%); bottom: -300px; right: -300px; }

.cadastro-wrap { max-width: 560px; margin: 32px auto; position: relative; z-index: 1; }

.brand-header { text-align: center; margin-bottom: 24px; }
.brand-header a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; box-shadow: 0 8px 24px rgba(124,58,237,0.5); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.brand-tagline { font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.55); font-weight: 600; margin-top: 2px; }

.cadastro-card { background: var(--surface); padding: 40px; border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl); border: 1px solid var(--border); }

.cadastro-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; color: var(--text-strong); margin-bottom: 8px; }
.cadastro-card h1 .accent { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cadastro-card .subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 6px; }
.field label .req { color: var(--danger); margin-left: 4px; }
.field label .hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-light); margin-left: 6px; font-size: 11px; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: all var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.field-feedback, .field small { font-size: 13px; margin-top: 6px; font-weight: 500; display: block; }
.field-feedback.success, .field small.ok { color: var(--success); }
.field-feedback.error, .field small.erro { color: var(--danger); }
.field-feedback.checking { color: var(--text-muted); }

.slug-row { display: flex; align-items: stretch; }
.slug-row input { border-radius: var(--radius-md) 0 0 var(--radius-md); border-right: none; }
.slug-row .suffix { background: var(--gradient-soft); padding: 12px 14px; border: 1.5px solid var(--border); border-left: none; border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 13px; color: var(--primary-dark); font-weight: 600; display: flex; align-items: center; white-space: nowrap; font-family: monospace; }

.btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,58,237,0.45); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alerta { padding: 14px; border-radius: var(--radius-md); margin-bottom: 16px; font-size: 14px; }
.alerta.erro { background: rgba(239,68,68,0.1); color: #b91c1c; border: 1px solid rgba(239,68,68,0.2); }
.alerta.sucesso { background: rgba(16,185,129,0.1); color: #047857; border: 1px solid rgba(16,185,129,0.2); }

.sucesso-card { background: var(--surface); border: 2px solid var(--success); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.sucesso-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; color: var(--text-strong); background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sucesso-card a { color: var(--primary); font-weight: 600; display: inline-block; margin: 8px; text-decoration: none; word-break: break-all; padding: 8px 14px; background: var(--gradient-soft); border-radius: 8px; }

.cadastro-footer { text-align: center; margin-top: 24px; color: rgba(255,255,255,0.7); font-size: 13px; }
.cadastro-footer a { color: rgba(255,255,255,0.95); text-decoration: underline; }

.trust-badges { display: flex; justify-content: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.trust-badges span::before { content: '✓ '; color: var(--success); font-weight: 700; }

/* F1 CADASTRO MOBILE FIXES */
@media (max-width: 768px) {
  .cadastro-wrap { padding: 16px !important; min-height: 100vh; }
  .cadastro-card { padding: 24px 20px !important; max-width: 100% !important; margin: 0 !important; }
  .brand-header { margin-bottom: 20px; }
  .brand-header h1, .cadastro-card h1 { font-size: 22px; }
  .form-row, .field-row { flex-direction: column !important; gap: 12px !important; }
  .form-row > *, .field-row > * { width: 100% !important; }
  input, select, textarea { font-size: 16px !important; padding: 12px 14px !important; min-height: 44px; }
  .btn-submit, .btn { width: 100%; padding: 14px !important; font-size: 16px; }
  .trust-badges { flex-direction: column; gap: 8px; font-size: 12px; }
  .slug-row { flex-direction: column; }
  .slug-row .suffix { border-left: 1.5px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; }
  .slug-row input { border-right: 1.5px solid var(--border); border-radius: 10px 10px 0 0; }
}
