/* ==========================================================================
   metanoIA — tela de login
   --------------------------------------------------------------------------
   Depende de css/site.css e css/cadastro.css (grade .signup e campos .field).
   ========================================================================== */

.signup--login { grid-template-columns: 1fr 1.02fr; }
.signup--login .signup__aside { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.signup--login .signup__panel { order: 1; }

/* cartão do assistente na coluna de apresentação */
.login__peek {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-card);
}
.login__peek h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-600);
}
.login__bubble {
  padding: 13px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.login__bubble--ai { background: var(--cream-3); border: 1px solid var(--line); }
.login__bubble--me { background: var(--peach); align-self: flex-end; max-width: 84%; }

/* campos com ação à direita do rótulo */
.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__head a { font-size: 12.5px; font-weight: 500; color: var(--brand-600); }
.field__head a:hover { text-decoration: underline; text-underline-offset: 2px; }

.field--pass { position: relative; }
.field--pass input { padding-right: 52px; }
.field__toggle {
  position: absolute;
  right: 8px;
  top: 27px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.field__toggle:hover { background: var(--cream-2); color: var(--ink-soft); }

.login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.login__row .consent { font-size: 13px; color: var(--ink-soft); }

/* aviso de erro / estado de demonstração */
.alert {
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.alert.is-on { display: flex; }
.alert--error { background: #FDEDE9; border: 1px solid #F6CFC4; color: #A63F27; }
.alert--info { background: var(--peach-2); border: 1px solid #F7DFC6; color: var(--brand-700); }
.alert svg { flex: none; margin-top: 1px; }

.login__sep {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--faint);
}
.login__sep::before,
.login__sep::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

.btn--sso {
  width: 100%;
  height: 50px;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.btn--sso:hover { border-color: var(--brand-300); color: var(--brand-700); }

.login__foot { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.login__foot a { color: var(--brand-600); font-weight: 500; }
.login__foot a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* botão em carregamento */
.btn.is-loading { pointer-events: none; opacity: .75; }

@media (max-width: 1020px) {
  .signup--login { grid-template-columns: 1fr; }
  .signup--login .signup__aside { order: 1; border-left: 0; border-bottom: 1px solid var(--line); }
  .signup--login .signup__panel { order: 2; }
}
