.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.auth-visual {
  background: #15171a;
  color: #fff;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-visual h1 {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -2px;
  max-width: 560px;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}

.auth-box {
  width: min(440px,100%);
}

.auth-box h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.auth-box .sub {
  color: var(--muted);
  margin-bottom: 25px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.field label {
  font-size: 12px;
  font-weight: 900;
}

.field input,.field select,.field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  background: #fff;
}

.field input:focus,.field select:focus,.field textarea:focus {
  border-color: #C6A53B;
}

.password-field-wrap {
  position: relative;
  width: 100%;
}

.password-field-wrap input {
  width: 100%;
  padding-right: 48px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #656970;
  cursor: pointer;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: #f2f3f4;
  color: #17191c;
  outline: none;
}

.password-visibility-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-visibility-toggle.is-visible::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-42deg);
}

.auth-links {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
  text-align: center;
}

.auth-links a {
  font-weight: 900;
  color: var(--accent-dark);
}

@media (max-width:800px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 24px;
  }
}


/* Recuperação de senha */
.forgot-password-link {
  display: block;
  margin: -4px 0 16px auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.forgot-password-link:hover,
.reset-secondary-action:hover {
  text-decoration: underline;
}

.password-reset-flow[hidden],
#resetRequestStep[hidden],
#resetCodeStep[hidden],
#resetPasswordStep[hidden] {
  display: none !important;
}

.password-reset-heading {
  margin-bottom: 18px;
}

.password-reset-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff5c9;
  color: #755a00;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .45px;
}

.password-reset-heading h2 {
  margin: 0 0 7px;
  font-size: 28px;
  letter-spacing: -.7px;
}

.password-reset-heading p,
.reset-instruction {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.reset-code-input {
  font-size: 23px !important;
  font-weight: 900;
  letter-spacing: 9px;
  text-align: center;
}

.reset-secondary-action {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.reset-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 2px;
}

.reset-inline-actions .reset-secondary-action {
  margin: 12px 0 0;
}


/* Login com Google ----------------------------------------------------- */
.google-auth-wrap[hidden] {
  display: none !important;
}

.google-auth-wrap {
  margin: 2px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.google-auth-label {
  display: block;
  margin: 0 0 8px;
  color: #96999e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.google-signin-host {
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  box-shadow: 0 4px 14px rgba(16, 18, 22, .06);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.google-auth-wrap.is-busy .google-signin-host {
  pointer-events: none;
  opacity: .58;
}

.google-auth-status {
  margin: 7px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
}

.auth-divider {
  display: none;
}

.google-link-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  overflow: visible;
}

.google-link-dialog::backdrop {
  background: rgba(11, 12, 14, .62);
  backdrop-filter: blur(3px);
}

.google-link-card {
  position: relative;
  margin: 0;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
}

.google-link-card h2 {
  margin: 7px 0 8px;
  font-size: 27px;
  letter-spacing: -.6px;
}

.google-link-card > p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.google-link-kicker {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff5c9;
  color: #755a00;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .45px;
}

.google-link-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f4;
  color: #222;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.google-link-forgot {
  display: block;
  margin-top: 14px;
  color: var(--accent-dark);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}
