/* Command novo em tela cheia por cima do Command antigo, só na rota /command/novo. */
.ares-next-frame { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100dvh; border: 0; background: #050605; }
html.ares-next-open, html.ares-next-open body { overflow: hidden; }

/* ===== "Confirme sua identidade" (dialog.cmd-reauth, Command antigo e novo) =====
   Cartão de vidro no centro, cadeado com brilho, texto curto, senha com ícone, botão principal largo e "Cancelar" discreto.
   O diálogo é modal (camada de cima do navegador), então aparece por cima do Command novo, que fica desfocado atrás. */
html dialog.cmd-reauth {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(392px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 32px); overflow: auto;
  padding: 34px 28px 22px; border: 1px solid rgba(214, 230, 196, .12); border-radius: 26px; color: #eef1ea; text-align: center;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(195, 213, 143, .16), transparent 60%),
    linear-gradient(180deg, rgba(30, 37, 29, .94), rgba(13, 16, 13, .96));
  backdrop-filter: blur(26px) saturate(1.25); -webkit-backdrop-filter: blur(26px) saturate(1.25);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .07);
  font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
  animation: aresReauthIn .38s cubic-bezier(.16, 1, .3, 1);
}
html dialog.cmd-reauth::backdrop { background: rgba(4, 6, 4, .55); backdrop-filter: blur(10px) saturate(.9); -webkit-backdrop-filter: blur(10px) saturate(.9); animation: aresReauthFade .3s ease; }
html dialog.cmd-reauth form { display: flex; flex-direction: column; gap: 0; margin: 0; }

/* Cadeado no topo, com halo suave */
html dialog.cmd-reauth h2 { order: 1; margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
html dialog.cmd-reauth h2::before {
  content: ""; display: block; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  background: no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4e4a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3Ccircle cx='12' cy='15.5' r='1.2' fill='%23d4e4a6'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 35%, rgba(195, 213, 143, .26), rgba(195, 213, 143, .08) 70%);
  box-shadow: 0 0 0 1px rgba(195, 213, 143, .22), 0 0 0 8px rgba(195, 213, 143, .05), 0 10px 30px rgba(195, 213, 143, .12);
  animation: aresReauthGlow 2.8s ease-in-out infinite;
}
/* Texto curto e claro (troca o texto do Command antigo) */
html dialog.cmd-reauth p { order: 2; margin: 8px auto 22px; max-width: 290px; color: transparent; font-size: 0; line-height: 0; }
html dialog.cmd-reauth p::after { content: "Por segurança, digite a senha da sua conta. Depois, repita a ação."; display: block; color: #a4ad9e; font-size: 13.5px; line-height: 1.5; }
html.ares-next-open dialog.cmd-reauth p::after { content: "Por segurança, digite a senha da sua conta. A ação continua sozinha em seguida."; }

/* Senha com ícone de chave dentro do campo */
html dialog.cmd-reauth label { order: 3; margin: 0; padding: 0; display: grid; gap: 7px; text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .01em; color: #b9c1b3; }
html dialog.cmd-reauth input {
  width: 100%; box-sizing: border-box; height: 48px; margin: 0; padding: 0 14px 0 42px; border-radius: 14px; outline: none;
  border: 1px solid rgba(214, 230, 196, .14); color: #eef1ea; font: inherit; font-size: 16px; letter-spacing: .08em;
  background: rgba(0, 0, 0, .3) no-repeat 14px center / 17px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9989' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M10.8 12.2 20 3m-4 4 2.5 2.5M14.5 8.5 17 11'/%3E%3C/svg%3E");
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
html dialog.cmd-reauth input:hover { border-color: rgba(214, 230, 196, .24); }
html dialog.cmd-reauth input:focus { border-color: rgba(195, 213, 143, .65); background-color: rgba(0, 0, 0, .38); box-shadow: 0 0 0 4px rgba(195, 213, 143, .14); }

/* Botões: principal largo; Cancelar discreto embaixo */
html dialog.cmd-reauth button { font: inherit; cursor: pointer; white-space: nowrap; transition: transform .15s, filter .2s, background .2s, color .2s; }
html dialog.cmd-reauth button[type="submit"] {
  order: 4; width: 100%; box-sizing: border-box; margin: 16px 0 0; height: 48px; border: 0; border-radius: 14px; font-size: 0; color: #121810;
  background: linear-gradient(180deg, #d2e3a0, #b9cc84); box-shadow: 0 8px 22px rgba(185, 204, 132, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
html dialog.cmd-reauth button[type="submit"]::after { content: "Confirmar"; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
html dialog.cmd-reauth button[type="submit"]:hover { filter: brightness(1.05); }
html dialog.cmd-reauth button[type="button"] { order: 5; margin: 8px auto 0; padding: 8px 16px; border: 0; border-radius: 10px; background: transparent; color: #98a192; font-size: 13.5px; font-weight: 500; }
html dialog.cmd-reauth button[type="button"]:hover { color: #eef1ea; background: rgba(255, 255, 255, .05); }
html dialog.cmd-reauth button:active { transform: scale(.98); }
html dialog.cmd-reauth button:disabled { opacity: .55; cursor: default; transform: none; }
html dialog.cmd-reauth button:focus-visible { outline: 2px solid rgba(195, 213, 143, .7); outline-offset: 2px; }

@keyframes aresReauthIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes aresReauthFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aresReauthGlow { 0%, 100% { box-shadow: 0 0 0 1px rgba(195, 213, 143, .22), 0 0 0 8px rgba(195, 213, 143, .05), 0 10px 30px rgba(195, 213, 143, .12); } 50% { box-shadow: 0 0 0 1px rgba(195, 213, 143, .3), 0 0 0 11px rgba(195, 213, 143, .07), 0 10px 34px rgba(195, 213, 143, .2); } }
@media (prefers-reduced-motion: reduce) { html dialog.cmd-reauth, html dialog.cmd-reauth::backdrop, html dialog.cmd-reauth h2::before { animation: none; } }
@media (max-width: 420px) { html dialog.cmd-reauth { padding: 28px 20px 18px; border-radius: 22px; } }
