.auth-tela {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding: 1.5rem;
}

.auth-container {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.auth-titulo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-main);
  margin: 0;
}

.auth-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-input {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent-taupe);
  box-shadow: 0 0 0 3px var(--accent-taupe-faint);
}

.auth-input::placeholder {
  color: var(--text-light);
}

.auth-botao {
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background-color: var(--accent-taupe);
  color: var(--bg-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.auth-botao:hover {
  background-color: var(--accent-taupe-light);
  box-shadow: var(--shadow-md);
}

.auth-botao:active {
  transform: none;
}

.auth-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.4em;
}

@media (prefers-reduced-motion: no-preference) {
  .auth-tela {
    animation: authFadeIn 0.3s ease;
  }
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-link {
  min-height: 44px;
  background: transparent;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
}

.auth-link:hover {
  color: var(--text-main);
}

.auth-input:-webkit-autofill {
  -webkit-text-fill-color: var(--text-main);
  -webkit-box-shadow: inset 0 0 0 1000px var(--bg-primary);
}

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

.espaco-sair {
  padding: 2rem;
  text-align: left;
}

.espaco-sair {
  text-align: right;
}

.botao-sair {
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background-color: var(--alerta);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.botao-sair:hover {
  background-color: var(--alerta-hover);
  box-shadow: var(--shadow-md);
}

.botao-sair:active {
  transform: none;
}
