/* Login — Área de membros (padrão V2 Ativo Digital) */

body.ad-login-page {
  min-height: 100vh;
  color: #f5f7fa;
  font-family: var(--font-institucional);
}

/* Header login: logo centralizado + pill à direita (igual LP) */
body.ad-login-page .ad-header-inst {
  justify-content: center;
}

body.ad-login-page .ad-header-client {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  margin-top: calc(var(--safe-top, 0px) / 2);
}

@media (max-width: 860px) {
  body.ad-login-page .ad-header-client {
    right: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
  }
}

.ad-login-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--chrome-top, 96px) + 1.5rem) 1.1rem 2rem;
}

.ad-login-card {
  width: 100%;
  max-width: 430px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg, 16px);
  background: rgba(19, 26, 38, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.ad-login-card h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-titulos);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ad-login-card .lead {
  margin: 0 0 1.1rem;
  font-family: var(--font-institucional);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.ad-login-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-institucional);
  font-size: 0.88rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.88);
}

.ad-login-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 20, 32, 0.92);
  color: #fff;
  font-family: var(--font-institucional);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ad-login-card input:-webkit-autofill,
.ad-login-card input:-webkit-autofill:hover,
.ad-login-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 20, 32, 0.92) inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ad-login-card input:focus {
  border-color: rgba(255, 90, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.14);
}

.ad-login-card button[type='submit'] {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(135deg, var(--ad-orange-primary), var(--ad-orange-deep));
  color: #fff;
  font-family: var(--font-institucional);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 90, 0, 0.28);
  transition: transform 0.12s, box-shadow 0.15s;
}

.ad-login-card button[type='submit']:hover {
  box-shadow: 0 10px 28px rgba(255, 90, 0, 0.38);
}

.ad-login-card button[type='submit']:active {
  transform: scale(0.98);
}

.ad-login-error {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md, 8px);
  color: #fecaca;
  background: rgba(180, 40, 40, 0.22);
  border: 1px solid rgba(255, 120, 120, 0.35);
  font-size: 0.86rem;
  text-align: left;
}
