
/* =========================================================
   REGIÃO RANGO V2
   CADASTRO DO CLIENTE
========================================================= */

* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;

  --rr-laranja: #ff6b35;
  --rr-fundo: #f4f6f9;
  --rr-card: #ffffff;
  --rr-campo: #f8fafc;
  --rr-texto: #182230;
  --rr-secundario: #697586;
  --rr-borda: #e0e5ec;
}

html[data-tema="escuro"] {
  color-scheme: dark;

  --rr-fundo: #10151d;
  --rr-card: #1b222d;
  --rr-campo: #141b25;
  --rr-texto: #f6f7f9;
  --rr-secundario: #a1adbd;
  --rr-borda: #36404d;
}

body {
  margin: 0;
  min-height: 100vh;

  background: var(--rr-fundo);
  color: var(--rr-texto);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.cadastro-pagina {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 28px 16px;

  background:
    radial-gradient(
      circle at top,
      rgba(255, 107, 53, 0.12),
      transparent 45%
    );
}

.cadastro-card {
  width: 100%;
  max-width: 470px;

  padding: 32px;

  border: 1px solid var(--rr-borda);
  border-radius: 24px;

  background: var(--rr-card);

  box-shadow:
    0 14px 45px rgba(0, 0, 0, 0.08);
}

.cadastro-marca {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cadastro-logo {
  width: 49px;
  height: 49px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  background: var(--rr-laranja);
  color: #fff;

  font-weight: 900;
  font-size: 19px;
}

.cadastro-marca > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cadastro-marca strong {
  font-size: 16px;
  font-weight: 900;
}

.cadastro-marca small {
  color: var(--rr-secundario);
  font-size: 11px;
}

.cadastro-introducao {
  margin: 30px 0 24px;
}

.cadastro-etiqueta {
  color: var(--rr-laranja);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.cadastro-introducao h1 {
  margin: 8px 0;
  font-size: 29px;
  letter-spacing: -1px;
}

.cadastro-introducao p {
  margin: 0;
  color: var(--rr-secundario);
  font-size: 13px;
  line-height: 1.6;
}

#formularioCadastroCliente {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.campo label {
  font-size: 12px;
  font-weight: 800;
}

.campo input {
  width: 100%;
  height: 46px;

  padding: 0 13px;

  border: 1px solid var(--rr-borda);
  border-radius: 12px;

  outline: none;

  background: var(--rr-campo);
  color: var(--rr-texto);

  font-size: 13px;
}

.campo input:focus {
  border-color: var(--rr-laranja);

  box-shadow:
    0 0 0 3px rgba(255, 107, 53, 0.12);
}

.campo input::placeholder {
  color: var(--rr-secundario);
  opacity: 0.75;
}

.campo-senha {
  position: relative;
}

.campo-senha input {
  padding-right: 85px;
}

.botao-ver-senha {
  position: absolute;
  right: 7px;
  top: 50%;

  transform: translateY(-50%);

  padding: 8px;

  border: 0;
  border-radius: 8px;

  background: transparent;
  color: var(--rr-laranja);

  font-size: 11px;
  font-weight: 800;

  cursor: pointer;
}

.mensagem-cadastro {
  margin: 0;
  padding: 12px;

  border-radius: 11px;

  font-size: 12px;
  line-height: 1.5;
}

.mensagem-cadastro.erro {
  background: #fff0f0;
  color: #ab2929;
  border: 1px solid #efbbbb;
}

.mensagem-cadastro.sucesso {
  background: #e8f8ef;
  color: #13713b;
  border: 1px solid #a3d9b9;
}

.botao-cadastrar {
  width: 100%;
  min-height: 48px;

  border: 0;
  border-radius: 12px;

  background: var(--rr-laranja);
  color: #fff;

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;
}

.botao-cadastrar:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cadastro-rodape {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;

  margin-top: 24px;
  padding-top: 20px;

  border-top: 1px solid var(--rr-borda);

  color: var(--rr-secundario);
  font-size: 12px;
}

.cadastro-rodape a {
  color: var(--rr-laranja);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 520px) {
  .cadastro-pagina {
    padding: 14px;
  }

  .cadastro-card {
    padding: 23px 19px;
    border-radius: 18px;
  }

  .cadastro-introducao h1 {
    font-size: 25px;
  }
}


/* =========================================================
   REGIAO RANGO V2
   CADASTRO DO CLIENTE - VOLTAR AO LOGIN
========================================================= */

.cadastro-voltar-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 10px;

  width: fit-content;
  min-height: 42px;

  margin-bottom: 24px;
  padding: 10px 15px;

  border: 1px solid rgba(255, 107, 53, 0.28);
  border-radius: 10px;

  background: rgba(255, 107, 53, 0.08);
  color: #ff875c;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cadastro-voltar-login:hover {
  background: rgba(255, 107, 53, 0.16);
  border-color: #ff6b35;
  color: #ff6b35;

  transform: translateX(-2px);
}

.cadastro-voltar-login:focus-visible {
  outline: 2px solid #ff6b35;
  outline-offset: 3px;
}

.cadastro-voltar-login span:first-child {
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 600px) {
  .cadastro-voltar-login {
    min-height: 44px;
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cadastro-voltar-login {
    transition: none;
  }
}