/* ==========================================================================
   CondoFlow — Autenticação (login, cadastro, recuperação de senha)
   Paleta: Navy + Orange + Neutros. Nada além disso.
   ========================================================================== */

.cf-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--cf-bg);
}

/* ── Painel esquerdo: hero navy ─────────────────────────────────────────── */

.cf-auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #12294D 0%, #1B3A6B 45%, #2E63AE 100%);
}

/* Círculo laranja translúcido — mesmo recurso do .cf-stat-hero */
.cf-auth__aside::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(240, 119, 34, .16);
}

.cf-auth__aside::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
}

.cf-auth__brand,
.cf-auth__pitch,
.cf-auth__aside-foot {
  position: relative;
  z-index: 1;
}

.cf-auth__brand img {
  height: 38px;
}

.cf-auth__pitch {
  max-width: 420px;
  margin: 40px 0;
}

.cf-auth__headline {
  margin: 0 0 14px;
  font-family: var(--cf-font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.cf-auth__headline em {
  font-style: normal;
  color: var(--cf-orange);
}

.cf-auth__lead {
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}

.cf-auth__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-auth__feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}

.cf-auth__feature-icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: rgba(240, 119, 34, .9);
}

.cf-auth__feature-icon svg {
  width: 15px;
  height: 15px;
}

.cf-auth__feature strong {
  display: block;
  font-weight: 600;
}

.cf-auth__feature span {
  color: rgba(255, 255, 255, .62);
}

.cf-auth__aside-foot {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .58);
}

.cf-auth__aside-foot a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.cf-auth__aside-foot a:hover {
  color: #fff;
}

/* ── Painel direito: formulário ─────────────────────────────────────────── */

.cf-auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.cf-auth__box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.cf-auth__box--wide {
  max-width: 640px;
}

.cf-auth__logo-mobile {
  display: none;
  margin-bottom: 28px;
}

.cf-auth__logo-mobile img {
  height: 36px;
}

.cf-auth__title {
  margin: 0 0 6px;
  font-family: var(--cf-font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--cf-navy);
  letter-spacing: -.02em;
}

.cf-auth__subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cf-text-muted);
}

.cf-auth__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cf-auth__forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--cf-navy);
  text-decoration: none;
}

.cf-auth__forgot:hover {
  color: var(--cf-orange);
}

.cf-auth__sep {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 4px 0;
  font-size: 12px;
  color: var(--cf-text-muted);
}

.cf-auth__sep::before,
.cf-auth__sep::after {
  flex: 1;
  height: 1px;
  content: '';
  background: var(--cf-border);
}

.cf-auth__footnote {
  margin: 24px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--cf-text-muted);
}

.cf-auth__footnote a {
  font-weight: 600;
  color: var(--cf-navy);
  text-decoration: none;
}

.cf-auth__footnote a:hover {
  color: var(--cf-orange);
}

/* Bloco de credenciais da demonstração */
.cf-auth__demo {
  padding: 14px 16px;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px dashed var(--cf-border);
  border-radius: var(--cf-radius-md);
  background: var(--cf-navy-lite);
  color: var(--cf-text-muted);
}

.cf-auth__demo strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cf-navy);
}

.cf-auth__demo code {
  padding: 1px 5px;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
  border-radius: 5px;
  background: #fff;
  color: var(--cf-navy);
}

/* Campo de senha com botão "mostrar" */
.cf-auth__pass {
  position: relative;
}

.cf-auth__pass .cf-input {
  padding-right: 44px;
}

.cf-auth__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cf-text-muted);
  transform: translateY(-50%);
  transition: var(--cf-t);
}

.cf-auth__eye:hover {
  background: var(--cf-navy-lite);
  color: var(--cf-navy);
}

.cf-auth__eye svg {
  width: 17px;
  height: 17px;
}

/* Medidor de força da senha */
.cf-auth__meter {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.cf-auth__meter span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--cf-border);
  transition: var(--cf-t);
}

.cf-auth__meter span.is-on-weak   { background: var(--cf-danger); }
.cf-auth__meter span.is-on-medium { background: var(--cf-orange); }
.cf-auth__meter span.is-on-strong { background: var(--cf-success); }

.cf-auth__meter-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--cf-text-muted);
}

/* Passo do cadastro */
.cf-auth__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.cf-auth__step {
  flex: 1;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 600;
  border-top: 3px solid var(--cf-border);
  color: var(--cf-text-muted);
  transition: var(--cf-t);
}

.cf-auth__step--active {
  border-top-color: var(--cf-orange);
  color: var(--cf-navy);
}

.cf-auth__step--done {
  border-top-color: var(--cf-navy);
  color: var(--cf-navy);
}

.cf-auth__actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 4px;
}

/* ── Seleção de condomínio ──────────────────────────────────────────────── */

.cf-auth__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: var(--cf-bg);
}

.cf-auth__center-box {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.cf-auth__center-box .cf-auth__title,
.cf-auth__center-box .cf-auth__subtitle {
  text-align: center;
}

.cf-condo-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}

.cf-condo-option {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-lg);
  background: var(--cf-surface);
  transition: var(--cf-t);
}

.cf-condo-option:hover {
  border-color: var(--cf-orange);
  box-shadow: 0 8px 20px rgba(27, 58, 107, .10);
  transform: translateY(-2px);
}

.cf-condo-option__logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cf-navy-lite);
}

.cf-condo-option__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--cf-navy);
}

.cf-condo-option__meta {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--cf-text-muted);
}

.cf-condo-option__arrow {
  margin-left: auto;
  color: var(--cf-text-muted);
}

.cf-condo-option:hover .cf-condo-option__arrow {
  color: var(--cf-orange);
}

/* ── Responsivo ─────────────────────────────────────────────────────────── */

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

  .cf-auth__aside {
    display: none;
  }

  .cf-auth__logo-mobile {
    display: block;
  }

  .cf-auth__main {
    padding: 40px 24px;
  }
}

@media (max-width: 520px) {
  .cf-auth__main {
    padding: 32px 18px;
  }

  .cf-auth__title {
    font-size: 22px;
  }
}
