/*
 * AgendaFlow - Correção isolada do layout da página de cadastro
 * Etapa 39.16
 * Escopo: somente páginas com .auth-page; não altera o sistema de login,
 * agendamentos, estabelecimentos nem o código de criação da conta.
 */
.auth-page {
  display: grid;
  grid-template-columns: minmax(330px, 42%) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
}

.auth-page .auth-page-aside {
  min-width: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 60px);
  padding: clamp(28px, 4vw, 62px);
  border-right: 1px solid var(--line, #2a3441);
  background: linear-gradient(160deg, rgba(10,13,17,.96), rgba(21,28,39,.94));
}

.auth-page .auth-page-aside .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-page .auth-page-copy {
  max-width: 490px;
}
.auth-page .auth-page-copy .eyebrow {
  margin-bottom: 12px;
}
.auth-page .auth-page-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.09;
  letter-spacing: -.035em;
}
.auth-page .auth-page-copy > p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted, #9ca6b5);
}
.auth-page .auth-page-aside .sidebar-card {
  width: 100%;
  max-width: 490px;
  margin-top: auto;
}

.auth-page .auth-page-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(30px, 4vw, 74px);
}
.auth-page .auth-form-wrap {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.auth-page .auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-bottom: 26px;
  padding: 7px 11px;
  border: 1px solid var(--line, #2a3441);
  border-radius: 10px;
  color: var(--accent-2, #f4d796);
  background: rgba(255,255,255,.025);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.auth-page .auth-back:hover {
  border-color: var(--accent, #d6b36a);
  background: rgba(214,179,106,.07);
}
.auth-page .section-heading {
  margin-bottom: 26px;
}
.auth-page .section-heading h2 {
  line-height: 1.15;
}
.auth-page .section-heading > p:last-child {
  line-height: 1.6;
}
.auth-page .form-card {
  width: 100%;
  max-width: none;
  gap: 17px;
  padding: clamp(20px, 2.4vw, 32px);
}
.auth-page .form-card label {
  min-width: 0;
}
.auth-page .form-card input {
  min-width: 0;
}
.auth-page .password-hint {
  margin: -6px 0 0;
  color: var(--muted, #9ca6b5);
  font-size: 12px;
}
.auth-page .form-card .primary {
  min-height: 48px;
  width: 100%;
}
.auth-page .form-card .auth-message:empty {
  display: none;
}
.auth-page .form-card .auth-separator {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  color: var(--muted, #9ca6b5);
  font-size: 12px;
  white-space: nowrap;
}
.auth-page .form-card .auth-separator::before,
.auth-page .form-card .auth-separator::after {
  content: '';
  flex: 1;
  min-width: 10px;
  height: 1px;
  background: var(--line, #2a3441);
}
.auth-page .form-card .auth-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-page .auth-page-aside {
    position: static;
    height: auto;
    gap: 25px;
    padding: 32px clamp(20px, 5vw, 50px);
    border-right: 0;
    border-bottom: 1px solid var(--line, #2a3441);
  }
  .auth-page .auth-page-aside .sidebar-card {
    margin-top: 0;
  }
  .auth-page .auth-page-main {
    align-items: flex-start;
    padding: 30px clamp(16px, 5vw, 50px) 60px;
  }
}

@media (max-width: 520px) {
  .auth-page .auth-page-aside {
    padding: 25px 20px;
  }
  .auth-page .auth-page-copy h1 {
    font-size: clamp(30px, 9vw, 40px);
  }
  .auth-page .auth-page-main {
    padding: 24px 16px 50px;
  }
  .auth-page .auth-back {
    margin-bottom: 23px;
  }
  .auth-page .section-heading h2 {
    font-size: 27px;
  }
  .auth-page .form-card {
    padding: 22px 18px;
  }
}
