/* =========================================================
   CRONIZA - CADASTRO
   ========================================================= */

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: #172033;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}


/* =========================================================
   ESTRUTURA
   ========================================================= */

.cadastro-page {
  display: grid;
  grid-template-columns: minmax(440px, 46%) 1fr;
  min-height: 100vh;
}


/* =========================================================
   PAINEL ESQUERDO
   ========================================================= */

.cadastro-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 52px 68px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(59, 130, 246, 0.28),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(37, 99, 235, 0.20),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #0b1220 0%,
      #111c31 55%,
      #0c1729 100%
    );

  color: #ffffff;
}


/* Elementos decorativos */

.cadastro-brand::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.cadastro-brand::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.brand-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 610px;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;

  color: #ffffff;

  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.2px;
  text-decoration: none;
}


/* =========================================================
   TEXTO INSTITUCIONAL
   ========================================================= */

.brand-message {
  margin: auto 0;
  padding: 70px 0 90px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;

  margin-bottom: 28px;
  padding: 9px 15px;

  border: 1px solid rgba(147, 197, 253, 0.20);
  border-radius: 999px;

  background: rgba(37, 99, 235, 0.14);
  color: #bfdbfe;

  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1px;
}

.brand-message h1 {
  max-width: 570px;
  margin: 0;

  color: #ffffff;

  font-size: clamp(46px, 4.2vw, 66px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -2.6px;
}

.brand-message > p {
  max-width: 520px;
  margin: 27px 0 0;

  color: #cbd5e1;

  font-size: 18px;
  line-height: 1.65;
}


/* =========================================================
   BENEFÍCIOS
   ========================================================= */

.brand-beneficios {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 42px;
}

.beneficio {
  display: flex;
  align-items: center;
  gap: 13px;

  color: #e2e8f0;

  font-size: 15px;
  font-weight: 450;
}

.beneficio-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 28px;

  width: 28px;
  height: 28px;

  border: 1px solid rgba(134, 239, 172, 0.14);
  border-radius: 50%;

  background: rgba(34, 197, 94, 0.13);
  color: #86efac;

  font-size: 14px;
  font-weight: 800;
}


/* =========================================================
   ÁREA DO FORMULÁRIO
   ========================================================= */

.cadastro-area {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 52px 60px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfcfe 100%
    );
}

.cadastro-card {
  width: 100%;
  max-width: 520px;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.mobile-logo {
  display: none;
}

.cadastro-header {
  margin-bottom: 34px;
}

.cadastro-header h2 {
  margin: 0 0 10px;

  color: #111827;

  font-size: 36px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -1.1px;
}

.cadastro-header p {
  margin: 0;

  color: #667085;

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

#formCadastro {
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-bottom: 20px;
}

.form-group label {
  color: #344054;

  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-group input {
  width: 100%;
  height: 52px;

  padding: 0 15px;

  border: 1px solid #d0d5dd;
  border-radius: 10px;

  outline: none;

  background: #ffffff;
  color: #101828;

  font-family: inherit;
  font-size: 16px;
  font-weight: 400;

  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.03);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-group input::placeholder {
  color: #98a2b3;
}

.form-group input:hover {
  border-color: #b8c0cc;
}

.form-group input:focus {
  border-color: #2563eb;

  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.10);
}


/* Erro */

.form-group input.input-error {
  border-color: #e5484d;
}

.form-group input.input-error:focus {
  box-shadow:
    0 0 0 4px rgba(229, 72, 77, 0.10);
}


/* =========================================================
   SENHA
   ========================================================= */

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 85px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;

  padding: 6px 4px;

  border: 0;

  background: transparent;
  color: #2563eb;

  font-family: inherit;
  font-size: 13px;
  font-weight: 650;

  cursor: pointer;

  transform: translateY(-50%);
}

.password-toggle:hover {
  color: #1d4ed8;
}

.form-hint {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.4;
}


/* =========================================================
   ERROS
   ========================================================= */

.form-error {
  display: none;

  color: #d92d20;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.form-error:not(:empty) {
  display: block;
}


/* =========================================================
   TERMOS
   ========================================================= */

.termos {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  margin-top: 4px;

  color: #667085;

  font-size: 13px;
  line-height: 1.55;

  cursor: pointer;
}

.termos input {
  flex: 0 0 auto;

  width: 18px;
  height: 18px;

  margin: 1px 0 0;

  accent-color: #2563eb;

  cursor: pointer;
}

.termos span {
  flex: 1;
}

.termos a {
  color: #2563eb;
  font-weight: 650;
  text-decoration: none;
}

.termos a:hover {
  text-decoration: underline;
}

.termos-error {
  margin-top: 7px;
}


/* =========================================================
   MENSAGEM GERAL
   ========================================================= */

.cadastro-mensagem {
  margin-top: 20px;
  padding: 14px 16px;

  border: 1px solid #fecdca;
  border-radius: 10px;

  background: #fef3f2;
  color: #b42318;

  font-size: 14px;
  line-height: 1.5;
}

.cadastro-mensagem.sucesso {
  border-color: #abefc6;

  background: #ecfdf3;
  color: #067647;
}


/* =========================================================
   BOTÃO PRINCIPAL
   ========================================================= */

.btn-cadastrar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 54px;

  margin-top: 25px;
  padding: 0 24px;

  border: 1px solid #2563eb;
  border-radius: 10px;

  background: #2563eb;
  color: #ffffff;

  font-family: inherit;
  font-size: 16px;
  font-weight: 700;

  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 4px 10px rgba(37, 99, 235, 0.14);

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.btn-cadastrar:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;

  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 6px 16px rgba(37, 99, 235, 0.20);
}

.btn-cadastrar:active {
  transform: translateY(1px);
}

.btn-cadastrar:disabled {
  border-color: #93b4f4;
  background: #93b4f4;

  box-shadow: none;

  cursor: not-allowed;
  transform: none;
}


/* =========================================================
   JÁ POSSUI CONTA
   ========================================================= */

.cadastro-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  margin-top: 27px;

  color: #667085;

  font-size: 14px;
}

.cadastro-login a {
  color: #2563eb;

  font-weight: 700;
  text-decoration: none;
}

.cadastro-login a:hover {
  text-decoration: underline;
}


/* =========================================================
   RESPONSIVO - NOTEBOOK
   ========================================================= */

@media (max-width: 1200px) {

  .cadastro-page {
    grid-template-columns: 43% 57%;
  }

  .cadastro-brand {
    padding: 45px;
  }

  .brand-message h1 {
    font-size: 48px;
  }

  .brand-message > p {
    font-size: 17px;
  }

  .cadastro-area {
    padding: 45px;
  }

}


/* =========================================================
   RESPONSIVO - TABLET
   ========================================================= */

@media (max-width: 900px) {

  .cadastro-page {
    display: block;
  }

  .cadastro-brand {
    display: none;
  }

  .cadastro-area {
    min-height: 100vh;
    padding: 42px 28px;
  }

  .cadastro-card {
    max-width: 520px;
  }

  .mobile-logo {
    display: inline-flex;

    margin-bottom: 46px;

    color: #2563eb;

    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1px;

    text-decoration: none;
  }

}


/* =========================================================
   RESPONSIVO - CELULAR
   ========================================================= */

@media (max-width: 560px) {

  .cadastro-area {
    align-items: flex-start;

    padding:
      30px
      20px
      42px;
  }

  .mobile-logo {
    margin-bottom: 38px;
  }

  .cadastro-header {
    margin-bottom: 30px;
  }

  .cadastro-header h2 {
    font-size: 31px;
  }

  .cadastro-header p {
    font-size: 15px;
  }

  .form-group {
    margin-bottom: 19px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input {
    height: 52px;

    /*
     * 16px evita zoom automático
     * do Safari/iPhone ao focar.
     */
    font-size: 16px;
  }

  .btn-cadastrar {
    min-height: 54px;
    font-size: 16px;
  }

  .cadastro-login {
    margin-top: 25px;
    font-size: 14px;
  }

}