/* =========================================================
   VXLINK AGENDA
   auth.css
   Login / Cadastro / Recuperação
   ========================================================= */

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(168,154,135,.16), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(222,210,195,.22), transparent 28%),
    #f7f4ef;
  color: var(--text);
}

.auth-body.menu-open,
.auth-body.modal-open {
  overflow: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.auth-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(31,30,28,.06);
  background: rgba(247,244,239,.82);
  backdrop-filter: blur(18px);
}

.auth-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-brand,
.auth-showcase-logo,
.auth-mobile-logo {
  display: inline-flex;
  align-items: center;
}

.auth-logo {
  width: 200px;
  height: auto;
}

.auth-header-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.auth-header-link {
  color: var(--text);
  font-weight: 800;
}

.auth-header-link:hover {
  text-decoration: underline;
}

/* =========================================================
   MAIN
   ========================================================= */

.auth-main {
  position: relative;
  overflow: hidden;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: .5;
}

.auth-glow-one {
  width: 380px;
  height: 380px;
  background: #e6ddd2;
  top: 4%;
  left: -140px;
}

.auth-glow-two {
  width: 320px;
  height: 320px;
  background: #ded2c3;
  right: -120px;
  bottom: 6%;
}

.auth-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px 0 36px;
}

/* =========================================================
   SHOWCASE
   ========================================================= */

.auth-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 15%, rgba(168,154,135,.18), transparent 32%),
    linear-gradient(145deg, #272522, #171614);
  color: #fff;
  box-shadow: 0 30px 90px rgba(38,34,30,.16);
}

.auth-showcase-content {
  min-height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.auth-showcase-logo img {
  width: 190px;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.auth-showcase-copy {
  margin-top: 54px;
  max-width: 620px;
}

.auth-kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #c7bbad;
  margin-bottom: 16px;
}

.auth-showcase-copy h1 {
  font-size: clamp(48px, 5.8vw, 74px);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 850;
}

.auth-showcase-copy h1 span {
  color: #c7bbad;
}

.auth-showcase-copy p {
  margin-top: 22px;
  max-width: 560px;
  color: rgba(255,255,255,.66);
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================================
   MINI DASHBOARD
   ========================================================= */

.auth-preview {
  margin-top: 48px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.auth-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.auth-preview-top > div:first-child {
  display: grid;
  gap: 3px;
}

.auth-preview-top small {
  color: rgba(255,255,255,.42);
  font-size: 11px;
}

.auth-preview-top strong {
  font-size: 22px;
}

.auth-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(127,190,153,.10);
  color: #b9d9c5;
  font-size: 11px;
}

.auth-preview-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fbe99;
}

.auth-preview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-preview-stats > div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}

.auth-preview-stats small,
.auth-preview-stats strong {
  display: block;
}

.auth-preview-stats small {
  color: rgba(255,255,255,.42);
  font-size: 10px;
  margin-bottom: 5px;
}

.auth-preview-stats strong {
  font-size: 20px;
}

.auth-preview-list {
  display: grid;
  gap: 9px;
}

.auth-preview-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}

.preview-time {
  font-size: 13px;
  font-weight: 800;
}

.auth-preview-item > div {
  min-width: 0;
}

.auth-preview-item strong,
.auth-preview-item small {
  display: block;
}

.auth-preview-item strong {
  font-size: 13px;
}

.auth-preview-item small {
  margin-top: 2px;
  color: rgba(255,255,255,.40);
  font-size: 10px;
}

.preview-confirmed {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(127,190,153,.10);
  color: #b9d9c5;
  font-size: 9px;
  font-weight: 800;
}

/* =========================================================
   BENEFÍCIOS
   ========================================================= */

.auth-showcase-footer {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.auth-showcase-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

.auth-showcase-footer span {
  color: #9fc7ad;
  font-weight: 900;
}

/* =========================================================
   ÁREA DO FORMULÁRIO
   ========================================================= */

.auth-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.auth-form-wrap {
  width: min(100%, 520px);
  padding: 18px 8px 24px;
}

.auth-mobile-logo {
  display: none;
  margin-bottom: 28px;
}

.auth-mobile-logo img {
  width: 180px;
}

.auth-form-heading {
  margin-bottom: 30px;
}

.auth-form-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-dark);
  font-weight: 800;
}

.auth-form-heading h2 {
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -.045em;
}

.auth-form-heading p {
  margin-top: 14px;
  max-width: 460px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* =========================================================
   ALERTA
   ========================================================= */

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(180,98,98,.08);
  border: 1px solid rgba(180,98,98,.18);
  color: #8f4c4c;
}

.auth-alert[hidden] {
  display: none;
}

.auth-alert-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(180,98,98,.12);
  font-size: 12px;
  font-weight: 900;
}

.auth-alert p {
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   FORM
   ========================================================= */

.auth-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.forgot-link {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
}

.forgot-link:hover {
  text-decoration: underline;
}

.form-control-wrap {
  position: relative;
}

.form-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.form-icon svg {
  width: 20px;
  height: 20px;
}

.form-control {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 46px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  color: var(--text);
  outline: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.form-control::placeholder {
  color: #aaa49c;
}

.form-control:hover {
  border-color: #cfc6bb;
}

.form-control:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168,154,135,.10);
}

.form-control.is-invalid {
  border-color: rgba(180,98,98,.65);
  box-shadow: 0 0 0 4px rgba(180,98,98,.08);
}

.form-error {
  min-height: 16px;
  font-size: 11px;
  color: #a45555;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-light);
  display: grid;
  place-items: center;
}

.password-toggle:hover {
  background: rgba(168,154,135,.08);
  color: var(--text);
}

.password-toggle svg {
  width: 21px;
  height: 21px;
}

.eye-closed {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-closed {
  display: block;
}

/* =========================================================
   OPÇÕES
   ========================================================= */

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 12px;
}

.remember-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  color: transparent;
  font-size: 11px;
  font-weight: 900;
  transition: .2s ease;
}

.remember-check input:checked + .custom-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* =========================================================
   BOTÃO ENTRAR
   ========================================================= */

.auth-submit {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(31,30,28,.18);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
  box-shadow: 0 18px 38px rgba(31,30,28,.22);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .76;
  transform: none;
}

.submit-arrow {
  font-size: 18px;
}

.submit-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin .7s linear infinite;
}

.submit-loader[hidden] {
  display: none;
}

/* =========================================================
   CONTA / TESTE
   ========================================================= */

.auth-create-account {
  margin-top: 24px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}

.auth-create-account a {
  margin-left: 4px;
  color: var(--text);
  font-weight: 800;
}

.auth-create-account a:hover {
  text-decoration: underline;
}

.auth-trial-card {
  margin-top: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.auth-trial-card:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.trial-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.trial-icon svg {
  width: 22px;
  height: 22px;
}

.auth-trial-card strong,
.auth-trial-card span {
  display: block;
}

.auth-trial-card strong {
  font-size: 13px;
}

.auth-trial-card div:nth-child(2) span {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-soft);
}

.trial-arrow {
  color: var(--accent-dark);
  font-size: 18px;
}

.auth-legal {
  margin-top: 24px;
  text-align: center;
}

.auth-legal p {
  color: var(--text-light);
  font-size: 10px;
  line-height: 1.6;
}

.auth-legal a {
  color: var(--text-soft);
  text-decoration: underline;
}

/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
  border-top: 1px solid rgba(31,30,28,.06);
  background: rgba(247,244,239,.72);
}

.auth-footer > div {
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-light);
  font-size: 10px;
}

.auth-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

/* =========================================================
   ANIMAÇÃO
   ========================================================= */

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   NOTEBOOK / TABLET GRANDE
   ========================================================= */

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  }

  .auth-showcase-content {
    padding: 32px;
  }

  .auth-preview-item {
    grid-template-columns: 48px 1fr;
  }

  .preview-confirmed {
    display: none;
  }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 860px) {
  .auth-header {
    display: none;
  }

  .auth-layout {
    width: min(100%, 620px);
    min-height: 100vh;
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .auth-showcase {
    display: none;
  }

  .auth-form-section {
    min-height: 100vh;
    padding: 36px 0;
    align-items: center;
  }

  .auth-form-wrap {
    width: 100%;
    padding: 0;
  }

  .auth-mobile-logo {
    display: inline-flex;
  }

  .auth-mobile-logo img {
    width: 185px;
  }

  .auth-form-heading {
    margin-bottom: 26px;
  }

  .auth-form-heading h2 {
    font-size: clamp(38px, 9vw, 54px);
  }

  .auth-footer {
    display: none;
  }
}

/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 560px) {
  .auth-layout {
    width: 100%;
    padding: 0 16px;
  }

  .auth-form-section {
    padding: 24px 0 30px;
    align-items: flex-start;
  }

  .auth-mobile-logo {
    margin-bottom: 30px;
  }

  .auth-mobile-logo img {
    width: 165px;
  }

  .auth-form-heading h2 {
    font-size: 40px;
  }

  .auth-form-heading p {
    font-size: 14px;
  }

  .form-control {
    min-height: 56px;
  }

  .auth-submit {
    min-height: 56px;
  }

  .auth-trial-card {
    grid-template-columns: 42px 1fr auto;
    padding: 14px;
  }
}

/* =========================================================
   CELULAR PEQUENO
   ========================================================= */

@media (max-width: 390px) {
  .auth-layout {
    padding: 0 13px;
  }

  .auth-form-section {
    padding-top: 18px;
  }

  .auth-mobile-logo {
    margin-bottom: 24px;
  }

  .auth-mobile-logo img {
    width: 150px;
  }

  .auth-form-heading h2 {
    font-size: 36px;
  }

  .form-label-row {
    gap: 10px;
  }

  .forgot-link {
    font-size: 11px;
  }

  .auth-trial-card {
    grid-template-columns: 40px 1fr;
  }

  .trial-arrow {
    display: none;
  }
}

/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
