/* Autenticação do MCO — identidade visual compartilhada com os modais da temporada.
   Tons frios de azul-grafite, sem marrom, sépia ou cinza quente. */

dialog.mco-auth-dialog,
dialog.mco-auth-logout.season-exit-dialog{
  margin:auto;
  color:#f2f5f7;
  border:1px solid #50616e;
  border-radius:20px;
  background:
    linear-gradient(145deg,#2b3741 0%,#202b33 46%,#151d24 100%);
  box-shadow:0 28px 90px rgba(0,0,0,.72);
}
dialog.mco-auth-dialog{
  position:relative;
  width:min(510px,calc(100vw - 36px));
  max-height:calc(100dvh - 28px);
  overflow:auto;
  padding:32px 28px 28px;
  text-align:center;
}
dialog.mco-auth-logout.season-exit-dialog{
  width:min(480px,calc(100vw - 32px));
  border-radius:18px;
}
dialog.mco-auth-dialog::backdrop,
dialog.mco-auth-logout::backdrop{
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.mco-auth-logo{
  display:block;
  width:245px;
  max-width:83%;
  height:auto;
  object-fit:contain;
  margin:10px auto 29px;
}
.mco-auth-close{
  position:absolute;
  right:12px;
  top:11px;
  width:34px;
  height:34px;
  min-height:0;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  color:#c5d0d8;
  font-size:26px;
  font-weight:400;
  line-height:1;
}
.mco-auth-close:hover:enabled{
  color:#fff;
  background:rgba(255,255,255,.09);
  box-shadow:none;
  transform:none;
}
.mco-auth-inner{
  padding:17px 20px 22px;
  border:1px solid #43535e;
  border-radius:15px;
  background:#121a20;
}
.mco-auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  overflow:hidden;
  border:1px solid #53626d;
  border-radius:10px;
  margin-bottom:21px;
}
.mco-auth-tab{
  min-height:46px;
  margin:0;
  padding:10px 7px;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:#1f2931;
  color:#d1dbe2;
  font-size:14px;
  font-weight:750;
}
.mco-auth-tab+.mco-auth-tab{border-left:1px solid #53626d}
.mco-auth-tab.is-active{background:#475965;color:#fff}
.mco-auth-tab:hover:enabled{
  background:#33434e;
  transform:none;
  box-shadow:none;
}
.mco-auth-tab.is-active:hover:enabled{background:#526574}
.mco-auth-form{
  display:flex;
  flex-direction:column;
  gap:13px;
}
.mco-auth-form input{
  display:block;
  width:100%;
  min-height:49px;
  margin:0;
  padding:12px 14px;
  border:1px solid #495b69;
  border-radius:9px;
  background:#141d25;
  color:#f5f7f9;
  font-size:14px;
  caret-color:#f5f7f9;
  box-shadow:none;
}
.mco-auth-form input:focus{
  background:#18252e;
  border-color:#91a9b9;
}
.mco-auth-form input::placeholder{color:#aabac6}
.mco-auth-repeat{width:100%}
.mco-auth-message{
  font-size:12.5px;
  line-height:1.5;
  color:#ffb8b8;
  text-align:center;
}
.mco-auth-message:empty{display:none}
.mco-auth-message.is-success{color:#a9e0c3}

/* Evita que o preenchimento automático do Chrome/Edge sobrescreva o grafite. */
.mco-auth-form input:-webkit-autofill,
.mco-auth-form input:-webkit-autofill:hover,
.mco-auth-form input:-webkit-autofill:focus,
.mco-auth-form input:-webkit-autofill:active{
  -webkit-box-shadow:0 0 0 1000px #141d25 inset !important;
  box-shadow:0 0 0 1000px #141d25 inset !important;
  -webkit-text-fill-color:#f5f7f9 !important;
  caret-color:#f5f7f9;
  border-color:#607482;
}

.mco-auth-submit,
.mco-auth-logout .season-exit-actions [data-confirm]{
  border:1px solid #f0f0f0;
  border-radius:10px;
  background:linear-gradient(180deg,#f5f5f5,#d8d8d8);
  color:#101010;
  font-weight:750;
  box-shadow:none;
}
.mco-auth-submit{
  width:100%;
  min-height:47px;
  margin-top:4px;
  padding:10px 16px;
}
.mco-auth-submit:hover:enabled,
.mco-auth-logout .season-exit-actions [data-confirm]:hover:enabled{
  background:linear-gradient(180deg,#fff,#e8e8e8);
  color:#101010;
  box-shadow:none;
}

.mco-auth-logout-error{
  color:#ffb9b9;
  font-size:13px;
  margin:0 0 14px;
}
dialog.mco-auth-logout.season-exit-dialog h2{color:#f5f7f9}
dialog.mco-auth-logout.season-exit-dialog p{color:#c2cdd5}
dialog.mco-auth-logout .season-exit-actions [data-cancel]{
  background:#26323c;
  border:1px solid #536672;
  color:#f5f7f9;
}
dialog.mco-auth-logout .season-exit-actions [data-cancel]:hover:enabled{
  background:#33424e;
  border-color:#718694;
}

@media(max-width:560px){
  dialog.mco-auth-dialog{padding:26px 15px 18px}
  .mco-auth-logo{width:205px;margin:12px auto 21px}
  .mco-auth-inner{padding:14px 12px 18px}
  .mco-auth-tabs{margin-bottom:17px}
  .mco-auth-tab{font-size:13px}
}


/* Entrada em Mundo existente — alinhamento e proporções dos controles. */
#joinWorldForm{text-align:center}
#joinWorldForm > h2{text-align:center;margin:0 0 13px}
#joinWorldForm > p:first-of-type{
  margin:0 0 20px;
  text-align:center;
}
#joinWorldForm > input[name="codigo"]{
  display:block;
  width:100%;
  margin:0;
  text-align:center;
}
#joinWorldForm > input[name="codigo"]::placeholder{text-align:center}
#joinWorldForm .actions{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}
#joinWorldForm .actions > button{
  flex:0 0 175px;
  width:175px;
  min-height:52px;
  padding:11px 15px;
  text-align:center;
}
@media(max-width:480px){
  #joinWorldForm .actions > button{
    flex:1 1 100%;
    width:100%;
  }
}
