/* Andaime — estilos COMPARTILHADOS das páginas de autenticação (entrar/cadastrar/completar). PORTAL-020 V1/V2.
   Fonte única: o cartão (andaime-forms.php) e o login (account.login.html.twig) apenas linkam este arquivo e usam as
   classes/ícones abaixo (sem duplicar SVG/estilos em strings diferentes). Como o link só aparece nessas páginas, as regras
   mobile (V2) ficam limitadas a elas. Ícones oficiais e símbolo da marca vêm de images/andaime/*.svg (arquivos estáticos). */

.andz { max-width: 560px; margin: 8px auto; font-family: system-ui, Arial, sans-serif; }
.andz .brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: #5a4632; font-weight: 800; font-size: 22px; letter-spacing: .02em; }
/* símbolo A geométrico da marca oficial (BRANDING-009): enquadra o asset real por CSS (não gera outra imagem) */
.andz .brand .sym { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 8px; background-color: #060a12; background-image: url("images/andaime-share-47eb84427954.png"); background-repeat: no-repeat; background-size: 100px 56px; background-position: -50px -8px; }
.andz .brand b { color: #b8860b; }
.andz .card { background: #faf3e0; border: 1px solid #c9b68f; border-radius: 10px; padding: 16px; margin-top: 10px; }
.andz h2 { margin: .2em 0; color: #3a2f1c; }
.andz .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.andz label { display: block; font-weight: 700; margin: 10px 0 4px; color: #3a2f1c; }
.andz input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border: 1px solid #c9b68f; border-radius: 6px; background: #fff; font-size: 16px; }
.andz input.ro { background: #efe7d0; color: #5a4632; }
.andz .er { color: #8a1f1f; font-size: 12px; margin-top: 2px; }
.andz .banner { border-radius: 6px; padding: 9px 12px; margin: 8px 0; font-size: 14px; background: #efe7d0; border: 1px solid #8a6d3b; color: #3a2f1c; }
/* banner de ERRO da recuperação (mesma largura/tipografia do cartão) — PORTAL-022 R1 */
.andz .banner.err { background: #f6dcdc; border-color: #8a1f1f; color: #8a1f1f; }
.andz.lost-note { margin-bottom: 0; }
.andz.lost-note .banner { margin: 8px auto; }
.andz .chk { display: flex; gap: 8px; align-items: center; margin-top: 10px; min-height: 44px; font-size: 13px; }
.andz .chk input { width: auto; min-width: 22px; min-height: 22px; margin-top: 2px; }
/* opções de recuperação (radios) com área de toque adequada — usado nas páginas de recuperação (PORTAL-022) */
.andz .opt { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; padding: 12px; min-height: 44px; box-sizing: border-box; border: 1px solid #c9b68f; border-radius: 7px; background: #fff; cursor: pointer; font-size: 14px; color: #3a2f1c; }
.andz .opt:hover { background: #f3ead2; }
.andz .opt input { width: auto; min-width: 22px; min-height: 22px; margin-top: 1px; }
.andz button, .andz .btn { display: block; margin-top: 16px; width: 100%; min-height: 48px; border: 0; border-radius: 7px; background: #b8860b; color: #1a1408; font: 700 16px var(--af-font-ui, system-ui); text-align: center; line-height: 48px; cursor: pointer; }
.andz .under { margin-top: 12px; font-size: 13px; color: #5a4632; }
.andz .under a { color: var(--af-color-link, #0b4e8a); font-weight: 700; }
.andz .hint { font-size: 12px; color: #7a6a4f; margin-top: 6px; }

/* separador "ou" + botões sociais empilhados de largura total, ícone oficial à esquerda */
.andz .sep { display: flex; align-items: center; gap: 10px; color: #7a6a4f; margin: 14px 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.andz .sep:before, .andz .sep:after { content: ""; flex: 1; height: 1px; background: #c9b68f; }
.andz .soc { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 46px; margin: 8px 0; border: 1px solid #c9b68f; border-radius: 7px; background: #fff; color: #3a2f1c; text-decoration: none; font-weight: 700; font-size: 15px; }
.andz .soc:hover { background: #f3ead2; }
.andz .soc:focus-visible { outline: 3px solid #b8860b; outline-offset: 2px; }
.andz .soc .ic { width: 18px; height: 18px; flex: 0 0 auto; background-size: contain; background-repeat: no-repeat; background-position: center; }
/* Google: botão claro com o G colorido oficial */
.andz .ic-google { background-image: url("images/andaime/icon-google.svg"); }
/* Discord: cor característica (blurple) com texto/ícone brancos e contraste adequado */
.andz .soc.discord { background: #5865F2; color: #fff; border-color: #4752c4; }
.andz .soc.discord:hover { background: #4f5bda; }
.andz .soc.discord:focus-visible { outline: 3px solid #b8860b; outline-offset: 2px; }
.andz .ic-discord { background-image: url("images/andaime/icon-discord-white.svg"); }

/* formulário de LOGIN (mesma linguagem do cartão): e-mail/senha/Entrar alinhados no desktop, recuperação abaixo */
.andz .login-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 12px; align-items: end; }
.andz .login-fields .act { align-self: end; }
/* ENTRAR é a ação primária → azul de ação (as demais ações tradicionais seguem em ouro) */
.andz .login-fields .act button { margin-top: 0; min-width: 130px; background: var(--af-blue-action-600, #0c4d94); color: #fff; }
.andz .login-fields .act button:hover { background: var(--af-blue-action-700, #073b79); }
.andz .login-under { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; }
.andz .login-under a { color: var(--af-color-link, #0b4e8a); font-weight: 700; }
.andz .login-under .rm { color: #5a4632; font-weight: 600; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.andz .login-under .rm input { width: auto; min-width: 20px; min-height: 20px; }

/* mobile: formulário em uma coluna */
@media (max-width: 560px) {
	.andz .grid { grid-template-columns: 1fr; }
	.andz .login-fields { grid-template-columns: 1fr; }
	.andz .login-fields .act button { width: 100%; }
	.andz .login-under { flex-direction: column; align-items: flex-start; }
}

/* V2 — as PÁGINAS DE AUTENTICAÇÃO cabem em viewport estreito (só elas carregam este CSS): colapsa o layout fixo do tema
   tibiacom (largura mínima 1000px + colunas laterais absolutas), sem zoom-out forçado nem rolagem horizontal. */
@media (max-width: 768px) {
	#ArtworkHelper, #Bodycontainer { min-width: 0 !important; max-width: 100% !important; width: 100% !important; }
	#ThemeboxesColumn { display: none !important; }
	#MenuColumn { position: static !important; width: auto !important; margin: 8px 8px 0 !important; }
	#ContentColumn { margin: 8px !important; }
	#ContentRow { position: static !important; top: 0 !important; }
	.andz { max-width: 100%; }
}
