/* ===============================
   LOGIN E CADASTRO
   Moldura escura, marca à esquerda e formulário à direita.
   =============================== */

.auth-body {
  margin: 0;
  background-color: #0e0f11;
}

.auth {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-height: 100dvh;
  padding: 10px;
}

/* ---------- marca ---------- */

.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-radius: 20px;
  background:
    radial-gradient(120% 70% at 75% 0%, color-mix(in srgb, var(--color-accent) 32%, transparent) 0%, color-mix(in srgb, var(--color-accent) 8%, transparent) 40%, transparent 70%),
    linear-gradient(180deg, #1a1b1f 0%, #121316 100%);
}

.auth-brand__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.auth-brand__logo {
  display: block;
  width: min(320px, 80%);
  height: auto;
  margin-bottom: 48px;
}

.auth-slides {
  position: relative;
  width: 100%;
  min-height: 130px;
}

.auth-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.auth-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
}

.auth-slide__title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.auth-slide__text {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

.auth-dots {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.auth-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.auth-dot.is-active {
  width: 22px;
  border-radius: 8px;
  background-color: var(--color-accent);
}

/* ---------- painel do formulário ---------- */

.auth-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 20px);
  padding: 28px 36px 24px;
  border-radius: 20px;
  background-color: var(--color-bg);
  box-sizing: border-box;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-top__logo img {
  display: block;
  width: 150px;
  height: auto;
}

.auth-top__switch {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-text);
}

.auth-top__switch a,
.auth-link,
.auth-check a {
  position: relative;
  color: var(--color-title);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: 40px 0;
}

.auth-title {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-title);
}

.auth-subtitle {
  margin: 0 0 28px;
  font-size: 1.4rem;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text);
}

.auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 48, 37, 0.35);
  border-radius: 8px;
  background-color: rgba(217, 48, 37, 0.08);
}

.auth-alert p {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.45;
  color: #d93025;
}

.auth-alert p + p {
  margin-top: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.auth-field label {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-title);
}

.auth-input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-border-login);
  border-radius: 8px;
  font-family: var(--font-text);
  font-size: 1.5rem;
  color: var(--color-title);
  background-color: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
  color: var(--color-text);
  opacity: 0.6;
}

.auth-input:focus {
  outline: none;
  border-color: var(--color-title);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.auth-password {
  position: relative;
}

.auth-password .auth-input {
  padding-right: 46px;
}

.auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.auth-password__toggle[aria-pressed="true"] {
  color: var(--color-title);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.3rem;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--color-text);
  cursor: pointer;
}

.auth-check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--color-ui-dark);
}

.auth-check--terms a {
  font-weight: 500;
}

/* Botão principal: amarelo do site, mesma animação dos botões do header */
.auth-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 4px;
  border: 1px solid var(--color-accent);
  border-radius: 100px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: #111111;
  background-color: var(--color-accent);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.auth-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-ui-dark);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.auth-submit:hover {
  color: var(--color-bg);
  border-color: var(--color-ui-dark);
}

.auth-submit:hover::before {
  transform: translateX(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  font-size: 1.25rem;
  color: var(--color-text);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-border-login);
}

.auth-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.25rem;
  color: var(--color-text);
}

.auth-bottom__links {
  display: flex;
  gap: 18px;
}

.auth-bottom__links a {
  color: var(--color-text);
}

.auth-bottom__links a:hover {
  color: var(--color-title);
}

/* ---------- recuperação de senha ---------- */

.auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.auth-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--color-title);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-icon--error {
  background-color: rgba(217, 48, 37, 0.12);
}

.auth-icon--error svg {
  stroke: #d93025;
}

.auth-subtitle strong {
  color: var(--color-title);
  word-break: break-all;
}

.auth-success {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(30, 158, 84, 0.35);
  border-radius: 8px;
  background-color: rgba(30, 158, 84, 0.1);
}

.auth-success p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e9e54;
}

a.auth-submit {
  text-decoration: none;
}

.auth-foot {
  margin: 18px 0 0;
  font-size: 1.35rem;
  text-align: center;
  color: var(--color-text);
}

/* ---------- tablet e celular ---------- */

@media (max-width: 900px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 0;
  }

  .auth-brand {
    display: none;
  }

  .auth-panel {
    min-height: 100dvh;
    padding: 20px;
    border-radius: 0;
  }

  .auth-box {
    padding: 32px 0;
  }

  .auth-top__logo img {
    width: 120px;
  }
}
