/* Login desktop (DEC-301 / identidade INC-144) — cartão central sem shell. */
.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 20px;
  background: var(--ac-page);
}
.login-card {
  width: min(100%, 598px);
  padding: 38px 46px 34px;
  border: 1px solid var(--ac-border);
  border-radius: 10px;
  background: var(--ac-surface);
  box-shadow: 0 2px 8px rgb(20 50 36 / 7%);
}
.login-brand { text-align: center; }
.login-brand__name { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; color: var(--ac-header); }
.login-brand__simbolo { display: block; width: auto; height: 128px; max-width: 100%; object-fit: contain; }
.login-brand__nome { font-size: clamp(2.25rem, 4vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.login-brand__title { margin: 9px 0 0; color: var(--ac-header); font-size: 1.6rem; font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
.login-brand__campus { margin: 7px 0 0; color: var(--ac-muted); font-size: 1.18rem; }
.login-heading { margin: 38px 0 24px; color: var(--ac-text); font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; }
.login-form { display: grid; gap: 18px; }
.login-field { display: grid; gap: 7px; }
.login-field label { font-weight: 750; }
.login-control { position: relative; display: flex; align-items: center; }
.login-control > .icon { position: absolute; left: 15px; width: 21px; height: 21px; color: var(--ac-muted); pointer-events: none; }
.login-control input {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 11px 46px 11px 47px;
  border: 1px solid var(--ac-border);
  border-radius: 7px;
  background: var(--ac-surface);
  color: var(--ac-text);
  font: inherit;
}
.login-control input:focus { border-color: var(--ac-header); outline: 3px solid rgb(0 85 48 / 22%); outline-offset: 1px; }
.login-eye { position: absolute; right: 8px; display: grid; place-items: center; width: 34px; height: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ac-muted); cursor: pointer; }
.login-eye .icon { width: 20px; height: 20px; }
.login-forgot { justify-self: end; margin-top: -7px; color: var(--ac-primary); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.login-submit { width: 100%; min-height: 50px; margin: 4px 0 0; border: 1px solid var(--ac-primary); border-radius: 7px; background: var(--ac-primary); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 750; cursor: pointer; }
.login-submit:hover { background: var(--ac-primary-hover); }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; color: var(--ac-muted); font-size: .95rem; text-align: center; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--ac-border); }
.login-secondary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 1px solid var(--ac-primary); border-radius: 7px; background: var(--ac-soft); color: var(--ac-primary); font-weight: 750; text-decoration: none; }
.login-secondary:hover { background: var(--ac-selected); }
.login-contact { margin: 26px 0 0; text-align: center; }
.login-contact a { color: var(--ac-primary); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.login-error { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #e5b4b0; border-radius: 6px; background: #fff3f2; color: #8d2c23; font-size: .92rem; }
.login-error ul { margin: 0; padding-left: 18px; }
.login-card .field-error { margin: 0; color: #a32121; font-size: .85rem; }
.login-hint { margin: -8px 0 0; color: #5d6c64; font-size: .82rem; }
@media (max-width: 640px) {
  .login-page { padding: 24px 14px; align-items: start; }
  .login-card { padding: 28px 22px 24px; }
  .login-brand__simbolo { height: 104px; }
  /* INC-542: nome mais longo que o anterior; ajusta sem quebrar em duas linhas. */
  .login-brand__nome { font-size: clamp(1.6rem, 7.2vw, 2.35rem); white-space: nowrap; }
  .login-brand__title { font-size: 1.35rem; }
  .login-brand__campus { font-size: 1rem; }
}
