/* bet563 – painel de registro (curto: celular, e-mail, nome, senha) */
.rg-dialog {
  --rg-bg: #1e1e1e;
  --rg-field: #333;
  --rg-field-focus: #3d3d3d;
  --rg-line: #4a4a4a;
  --rg-text: #fff;
  --rg-muted: #b9c2bd;
  --rg-accent: #26e3a8;
  --rg-accent-ink: #06231a;
  --rg-error: #ff8a80;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--rg-text);
  background:
    radial-gradient(70% 55% at 0 0, #0f3a2b 0, transparent 70%),
    var(--rg-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rg-dialog:not([open]) { display: none; }
.rg-dialog::backdrop { background: #000; }

.rg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.rg-logo { height: 22px; width: auto; display: block; }
.rg-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--rg-text);
  background: transparent;
  cursor: pointer;
}
.rg-close:hover { background: rgba(255, 255, 255, .1); }
.rg-close svg { width: 18px; height: 18px; }

.rg-main {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.rg-title {
  margin: 0 0 6px;
  font-family: FuturaPTWebBold, Futura, Arial, sans-serif;
  font-size: 28px;
  line-height: 34px;
}
.rg-lead { margin: 0 0 24px; color: var(--rg-muted); font-size: 14px; line-height: 20px; }

.rg-form { display: grid; gap: 18px; }
.rg-field { display: grid; gap: 6px; }
.rg-label { font-size: 13px; line-height: 16px; color: #cdeee1; }
.rg-box {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--rg-field);
  transition: border-color .15s, background-color .15s;
}
.rg-box:hover { background: var(--rg-field-focus); }
.rg-box:focus-within { border-color: var(--rg-accent); background: var(--rg-field-focus); }
.rg-field[data-invalid] .rg-box { border-color: var(--rg-error); }
.rg-prefix {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px 0 15px;
  border-right: 1px solid var(--rg-line);
  font-size: 16px;
  color: var(--rg-text);
  white-space: nowrap;
}
.rg-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--rg-text);
  background: transparent;
  font: inherit;
  font-size: 16px; /* 16px evita o zoom automático no iOS */
}
.rg-input::placeholder { color: #9aa39f; opacity: 1; }
.rg-toggle {
  appearance: none;
  height: 48px;
  padding: 0 14px;
  border: 0;
  color: var(--rg-muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rg-toggle:hover { color: var(--rg-text); }
.rg-error { min-height: 0; margin: 0; color: var(--rg-error); font-size: 13px; line-height: 16px; }
.rg-error:empty { display: none; }
.rg-hint { margin: 0; color: var(--rg-muted); font-size: 12px; line-height: 16px; }

.rg-submit {
  appearance: none;
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 4px;
  color: var(--rg-accent-ink);
  background: var(--rg-accent);
  font-family: FuturaPTWebBold, Futura, Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: filter .15s;
}
.rg-submit:hover { filter: brightness(1.08); }
.rg-submit:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }
.rg-status { margin: 0; font-size: 14px; line-height: 20px; color: var(--rg-muted); }
.rg-status[data-kind="error"] { color: var(--rg-error); }
.rg-status[data-kind="ok"] { color: var(--rg-accent); }
.rg-legal { margin: 18px 0 0; color: var(--rg-muted); font-size: 12px; line-height: 17px; }

.rg-close:focus-visible, .rg-toggle:focus-visible, .rg-submit:focus-visible { outline: 2px solid var(--rg-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .rg-box, .rg-submit { transition: none; }
}

.rg-dialog { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
