/**
 * Cadastro moderno: /usuario/register e /empresa/register.
 * Card central amplo, grid em 2 colunas no desktop, coluna única no mobile.
 * Classe estável .gw2d-register-account sobrevive a #edit-account → #edit-account--2.
 */

/* -------------------------------------------------------------------------- */
/* Shell / card                                                               */
/* -------------------------------------------------------------------------- */

/* Fundo de praia na região principal (#content.clearfix.region). */
body.gw2d-register-modern #page #content.clearfix.region,
body.page-usuario-register.gw2d-register-modern #page #content.clearfix.region,
body.page-empresa-register.gw2d-register-modern #page #content.clearfix.region {
  position: relative;
  isolation: isolate;
  background-color: #0b3d4a;
  background-image: url(../../../../themes/gw2d/images/bg-hospedagem.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 0;
  box-sizing: border-box;
}

body.gw2d-register-modern #page #content.clearfix.region::before,
body.page-usuario-register.gw2d-register-modern #page #content.clearfix.region::before,
body.page-empresa-register.gw2d-register-modern #page #content.clearfix.region::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 40, 48, 0.45) 0%, rgba(8, 40, 48, 0.55) 45%, rgba(8, 40, 48, 0.62) 100%);
}

body.gw2d-register-modern #page #content .content-width,
body.page-usuario-register.gw2d-register-modern #page #content .content-width,
body.page-empresa-register.gw2d-register-modern #page #content .content-width {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3.25rem;
  box-sizing: border-box;
}

body.gw2d-register-modern #page #content .page-title,
body.page-usuario-register.gw2d-register-modern h1.page-title,
body.page-empresa-register.gw2d-register-modern h1.page-title,
body.gw2d-register-modern #page #content .title-casos {
  display: none !important;
}

.gw2d-register-shell {
  display: block;
  width: 100%;
  max-width: 902px; /* +10% do card desktop (820px) */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Aside legado (não renderizado) — esconde se ainda houver cache/HTML antigo. */
.gw2d-register-aside {
  display: none !important;
}

.gw2d-register-main {
  width: 100%;
  min-width: 0;
}

.gw2d-register-card {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 2rem 2rem 2.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 86, 100, 0.08);
}

/* -------------------------------------------------------------------------- */
/* Header + resumo do plano                                                   */
/* -------------------------------------------------------------------------- */

.gw2d-register-header {
  margin: 0 0 1.5rem;
}

.gw2d-register-header__eyebrow {
  margin: 0 0 0.4rem;
  color: #008fa8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gw2d-register-header__title {
  margin: 0 0 0.55rem;
  color: #0f5664;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.gw2d-register-header__lead {
  margin: 0;
  max-width: 40rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.gw2d-register-plan-summary {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #d7e6ea;
  border-radius: 12px;
  background: #f4fbfd;
}

.gw2d-register-plan-summary--bronze {
  border-color: #d4a574;
  background: #fff8f1;
}

.gw2d-register-plan-summary--prata {
  border-color: #b0bcc8;
  background: #f5f7fa;
}

.gw2d-register-plan-summary--ouro {
  border-color: #e0b84e;
  background: #fff9e9;
}

.gw2d-register-plan-summary__eyebrow {
  display: inline-block;
  margin: 0 0 0.4rem;
  color: #008fa8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gw2d-register-plan-summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.gw2d-register-plan-summary__name {
  color: #0f5664;
  font-size: 1.2rem;
  font-weight: 700;
}

.gw2d-register-plan-summary__price {
  color: #0f5664;
  font-size: 1.05rem;
  font-weight: 700;
}

.gw2d-register-plan-summary__price small {
  margin-left: 0.15rem;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.gw2d-register-plan-summary__blurb,
.gw2d-register-plan-summary__hint {
  margin: 0.45rem 0 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.gw2d-register-plan-summary__hint {
  color: #008fa8;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Form card: grid, inputs 48px                                               */
/* -------------------------------------------------------------------------- */

body.gw2d-register-modern #page #content .gw2d-register-card form.gw2d-register-form,
body.gw2d-register-modern #page #content #user-register-form.gw2d-register-form {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  float: none !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account,
body.gw2d-register-modern #page #content #user-register-form .gw2d-register-account,
body.gw2d-register-modern #page #content #user-register-form #edit-account.gw2d-register-account,
body.gw2d-register-modern #page #content #user-register-form #edit-account--2.gw2d-register-account,
body.page-usuario-register #page #content .gw2d-register-card .gw2d-register-account,
body.page-empresa-register #page #content .gw2d-register-card .gw2d-register-account {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.35rem;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box;
}

body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-name,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-mail,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-pass,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-pass-confirm,
body.page-usuario-register #page #content .gw2d-register-card .gw2d-register-account > .form-item,
body.page-empresa-register #page #content .gw2d-register-card .gw2d-register-account > .form-item {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  box-sizing: border-box;
}

/* Usuário e e-mail em largura total; senha | confirmar em 2 colunas. */
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-name,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-mail,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item.form-item-mail,
body.page-usuario-register #page #content .gw2d-register-card .form-item-mail,
body.page-empresa-register #page #content .gw2d-register-card .form-item-mail {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-pass {
  grid-column: 1;
}

body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-pass-confirm {
  grid-column: 2;
}

/* Foto de perfil: não exibir no cadastro. */
body.gw2d-register-modern #page #content .gw2d-register-card .field-name-field-foto-do-perfil,
body.gw2d-register-modern #page #content .gw2d-register-card #edit-profile-usuario-field-foto-do-perfil,
body.gw2d-register-modern #page #content .gw2d-register-card #edit-profile-empresa-field-foto-do-perfil,
body.page-usuario-register #page #content .field-name-field-foto-do-perfil,
body.page-empresa-register #page #content .field-name-field-foto-do-perfil {
  display: none !important;
}

/* Profile fieldsets in 2 columns */
body.gw2d-register-modern #page #content .gw2d-register-card fieldset.gw2d-register-profile,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-profile {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  float: none !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-profile > legend,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-profile .fieldset-legend {
  display: block !important;
  position: static !important;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0;
  color: #0f5664;
  font-size: 1rem;
  font-weight: 700;
}

body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-profile .fieldset-wrapper,
body.page-empresa-register #page #content .gw2d-register-card #user-register-form #edit-profile-empresa .fieldset-wrapper,
body.page-usuario-register #page #content .gw2d-register-card #user-register-form #edit-profile-usuario .fieldset-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.35rem;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: stretch !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-profile .fieldset-wrapper > .form-wrapper,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-profile .fieldset-wrapper > .form-item,
body.page-empresa-register #page #content .gw2d-register-card #edit-profile-empresa .fieldset-wrapper .form-wrapper,
body.page-usuario-register #page #content .gw2d-register-card #edit-profile-usuario .fieldset-wrapper .form-wrapper {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* Full-width helpers inside profile grid */
body.gw2d-register-modern #page #content .gw2d-register-card .field-type-text-long,
body.gw2d-register-modern #page #content .gw2d-register-card .field-name-field-foto-do-perfil,
body.gw2d-register-modern #page #content .gw2d-register-card .captcha,
body.gw2d-register-modern #page #content .gw2d-register-card .form-actions,
body.gw2d-register-modern #page #content .gw2d-register-card #edit-field-email-pagamento {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Kill legacy 22vw / 28% / 31% register chrome inside the card */
body.gw2d-register-modern #page #content .gw2d-register-card #edit-account:not(.gw2d-register-account),
body.page-empresa-register #page #content .gw2d-register-card #user-register-form #edit-account:not(.gw2d-register-account) {
  width: 100% !important;
  margin-left: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card .user-info-from-cookie .form-wrapper,
body.gw2d-register-modern #page #content .gw2d-register-card #edit-account.form-wrapper .form-item,
body.gw2d-register-modern #page #content .gw2d-register-card .form-wrapper {
  width: auto;
  max-width: none;
}

body.gw2d-register-modern #page #content .gw2d-register-card label,
body.gw2d-register-modern #page #content .gw2d-register-card .form-item label {
  display: block;
  margin: 0 0 0.35rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

body.gw2d-register-modern #page #content .gw2d-register-card input.form-text,
body.gw2d-register-modern #page #content .gw2d-register-card input.form-email,
body.gw2d-register-modern #page #content .gw2d-register-card input.form-tel,
body.gw2d-register-modern #page #content .gw2d-register-card input[type="text"],
body.gw2d-register-modern #page #content .gw2d-register-card input[type="email"],
body.gw2d-register-modern #page #content .gw2d-register-card input[type="tel"],
body.gw2d-register-modern #page #content .gw2d-register-card input[type="password"],
body.gw2d-register-modern #page #content .gw2d-register-card select.form-select,
body.gw2d-register-modern #page #content .gw2d-register-card textarea.form-textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 0.7rem 0.85rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
  position: static !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card input:focus,
body.gw2d-register-modern #page #content .gw2d-register-card select:focus,
body.gw2d-register-modern #page #content .gw2d-register-card textarea:focus {
  border-color: #00aac8 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 170, 200, 0.18);
}

body.gw2d-register-modern #page #content .gw2d-register-card .description,
body.gw2d-register-modern #page #content .gw2d-register-card .form-item .description {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Checkbox e-mail pagamento */
body.gw2d-register-modern #page #content .gw2d-register-card #edit-field-email-pagamento .form-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0;
}

body.gw2d-register-modern #page #content .gw2d-register-card #edit-field-email-pagamento input {
  width: 20px !important;
  min-width: 20px;
  height: 20px !important;
  min-height: 20px;
  padding: 0 !important;
}

/* Captcha + actions */
body.gw2d-register-modern #page #content .gw2d-register-card .captcha,
body.page-empresa-register #page #content .gw2d-register-card .user-info-from-cookie .captcha {
  margin: 0.75rem 0 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card .form-actions,
body.page-empresa-register #page #content .gw2d-register-card .user-info-from-cookie .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.15rem 0 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.gw2d-register-modern #page #content .gw2d-register-card .form-actions input.form-submit,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-submit {
  box-sizing: border-box;
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: #00aac8;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

body.gw2d-register-modern #page #content .gw2d-register-card .form-actions input.form-submit:hover,
body.gw2d-register-modern #page #content .gw2d-register-card .form-actions input.form-submit:focus,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-submit:hover,
body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-submit:focus {
  background: #008fa8;
  color: #fff !important;
}

/* “Já tem conta?” block when present */
body.gw2d-register-modern #page #content #block-block-14 {
  float: none;
  clear: both;
  max-width: 902px;
  margin: 1.25rem auto 0;
  padding: 0 0.25rem;
  text-align: center;
}

body.gw2d-register-modern #page #content #block-block-14 .link-entrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #00aac8;
  border: 1px solid #00aac8;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Tablet                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .gw2d-register-shell {
    max-width: 100%;
  }

  .gw2d-register-card {
    padding: 1.5rem 1.25rem 1.65rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Mobile                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 699px) {
  body.gw2d-register-modern #page #content .content-width {
    padding: 1rem 0.9rem 2.25rem;
  }

  .gw2d-register-card {
    padding: 1.25rem 1rem 1.4rem;
  }

  body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account,
  body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-profile .fieldset-wrapper,
  body.page-empresa-register #page #content .gw2d-register-card #user-register-form #edit-profile-empresa .fieldset-wrapper,
  body.page-usuario-register #page #content .gw2d-register-card #user-register-form #edit-profile-usuario .fieldset-wrapper {
    grid-template-columns: 1fr !important;
    gap: 0.9rem !important;
  }

  body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-name,
  body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-mail,
  body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-pass,
  body.gw2d-register-modern #page #content .gw2d-register-card .gw2d-register-account > .form-item-pass-confirm {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .gw2d-register-header__title {
    font-size: 1.3rem;
  }

  body.gw2d-register-modern #page #content .gw2d-register-card input.form-text,
  body.gw2d-register-modern #page #content .gw2d-register-card input[type="text"],
  body.gw2d-register-modern #page #content .gw2d-register-card input[type="email"],
  body.gw2d-register-modern #page #content .gw2d-register-card input[type="tel"],
  body.gw2d-register-modern #page #content .gw2d-register-card input[type="password"],
  body.gw2d-register-modern #page #content .gw2d-register-card select.form-select {
    font-size: 16px; /* evita zoom iOS */
  }
}
