/* Forja dos Mundos — ajuste de Login/Cadastro para 100% de zoom */
.oauth-box,
.register-social { display:none !important; }

.auth-dialog {
  width:min(1040px, calc(100vw - 24px));
  max-width:1040px;
  max-height:calc(100dvh - 24px);
  padding:0;
  overflow:hidden;
}
.auth-dialog::backdrop { background:rgba(3,5,10,.76); backdrop-filter:blur(5px); }
.auth-layout {
  width:100%;
  min-height:0;
  height:min(720px, calc(100dvh - 24px));
  max-height:calc(100dvh - 24px);
  display:grid;
  grid-template-columns:minmax(280px,.82fr) minmax(420px,1.18fr);
  overflow:hidden;
}
.auth-art { min-height:0; background-position:center; background-size:cover; }
.auth-panel {
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:clamp(18px,2.5vh,30px) clamp(20px,3vw,38px);
  scrollbar-gutter:stable;
}
.auth-header { margin-bottom:12px; }
.auth-header h2 { margin:.2rem 0 .35rem; }
.auth-tabs { margin-bottom:12px; }
.auth-form { gap:10px; }
.auth-form .field { gap:5px; }
.auth-form input, .auth-form select { min-height:42px; }
.auth-row { margin:2px 0; }
.register-progress { margin:0 0 10px; }
.register-step { gap:10px; }
.register-actions { position:sticky; bottom:-1px; z-index:4; padding-top:10px; background:linear-gradient(180deg,transparent 0,#090b10 28%); }
.auth-footnote,.auth-mode { margin:.6rem 0 0; }

@media (max-height:780px) and (min-width:821px) {
  .auth-layout { height:calc(100dvh - 16px); max-height:calc(100dvh - 16px); }
  .auth-dialog { max-height:calc(100dvh - 16px); }
  .auth-panel { padding:14px 24px; }
  .auth-header p:last-child { margin-bottom:4px; }
  .auth-form { gap:7px; }
  .auth-form input,.auth-form select { min-height:38px; }
  .role-picker { padding:8px; }
}

@media (max-width:820px) {
  .auth-dialog { width:min(96vw,620px); max-height:calc(100dvh - 12px); }
  .auth-layout { display:block; height:auto; max-height:calc(100dvh - 12px); }
  .auth-art { display:none !important; }
  .auth-panel { max-height:calc(100dvh - 12px); padding:18px 16px 24px; }
  .form-grid { grid-template-columns:1fr !important; }
  .register-actions { padding-bottom:max(4px,env(safe-area-inset-bottom)); }
}
