:root {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #374151;
  --accent: #22c55e;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font: 400 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
}

/* --- ALTERAÇÃO AQUI --- */
body {
  /* Adicionei a nova imagem de fundo */
  background: url("../img/register.jpg") center center / cover no-repeat fixed;
}

/* --- Layout Principal --- */
.reg-wrap {
  max-width: 560px;
  margin: 48px auto;
  padding: 0 16px;
}

.reg-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px 32px;
  border: 1px solid var(--border);
}

.reg-card h2 {
  margin: 0 0 24px 0;
  font-size: 22px;
  color: #fff;
}

/* --- Formulário --- */
.form-row {
  margin-top: 20px;
}

label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  transition: border-color .2s;
}

.input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

/* --- Container para input + ícone --- */
.input-wrapper {
  position: relative;
}

.toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

/* --- Botões --- */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
  text-decoration: none;
  font-weight: 500;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background-color: #16a34a;
}

.btn--ghost {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}
.btn--ghost:hover {
  background-color: rgba(255, 255, 255, .05);
  border-color: var(--muted);
}

/* --- Alertas de Sucesso/Erro --- */
.alert-ok, .alert-err {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-ok {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .45);
  color: #bbf7d0;
}

.alert-err {
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .45);
  color: #fecaca;
}

