/* Login e código de acesso do backoffice: por cima de front.css (mesma barra lateral do site público).
   O logótipo fica exatamente onde estava; o menu desaparece. */

#sidebar.leaving nav ul { pointer-events: none; animation: menu-out 0.6s ease forwards; }
@keyframes menu-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { #sidebar.leaving nav ul { animation-duration: 0.01s; } }

/* Cartão ao centro da área preta (à direita da barra lateral) */
.auth-main {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2em;
}
@media (max-width: 1280px) { .auth-main { min-height: calc(100vh - 3.5em); } }
@media (max-width: 736px) { .auth-main { min-height: 100vh; padding: 2em 1em; } }

.auth-card {
  width: 100%; max-width: 22em;
  padding: 1.6em 1.7em;
  background: #1e1e1e;
  border-radius: 10px;
}
.auth-card h1 { font-size: 1.6em; line-height: 1.3; margin: 0 0 0.15em 0; }
.auth-card .lead { color: rgba(255, 255, 255, 0.6); margin: 0 0 1.3em 0; }
.auth-card form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9em; margin: 0; }
.auth-card label { display: grid; gap: 0.3em; font-size: 0.8em; color: rgba(255, 255, 255, 0.6); }
.auth-card label input { font-size: 1.25em; } /* volta aos 14pt dentro da label a 0.8em */
.auth-card input:not([type]), .auth-card input[type="password"] {
  appearance: none; display: block; width: 100%; min-width: 0;
  height: 2.75em; padding: 0 1em;
  background: transparent;
  border: solid 1px rgba(255, 255, 255, 0.15); border-radius: 0.25em;
  color: #fff; outline: 0;
}
.auth-card input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.auth-card .code-input { font-size: 1.9em; letter-spacing: 0.4em; text-indent: 0.4em; text-align: center; height: 2.2em; padding: 0 0.5em; }

.auth-card .btn {
  appearance: none; display: block; width: 100%;
  height: calc(4.75em + 2px); line-height: 4.75em; padding: 0 2em;
  border: 0; border-radius: 3em; cursor: pointer;
  background: #ef1458; color: #fff;
  font-size: 0.6em; font-weight: bold; letter-spacing: 0.25em; text-transform: uppercase;
  transition: background-color 0.2s ease;
}
.auth-card .btn:hover { background: #ff2d6f; }
.auth-card .hint { color: rgba(255, 255, 255, 0.6); font-size: 0.75em; margin: 0; }
.auth-card .inline-actions { display: flex; justify-content: space-between; margin-top: 1em; }
.auth-card .btn-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.6); font-size: 0.75em;
  border-bottom: dotted 1px rgba(255, 255, 255, 0.35); border-radius: 0;
}
.auth-card .btn-link:hover { color: #ef1458; border-bottom-color: transparent; }

.notice { margin: 0 0 1.2em 0; padding: 0.7em 0.9em; border-radius: 0.25em; font-size: 0.8em; line-height: 1.5;
  border-left: 4px solid #2fbf71; background: rgba(47, 191, 113, 0.12); }
.notice.error { border-color: #ff5a7a; background: rgba(255, 90, 122, 0.14); }
