/* Yugimon V81 login: only the login view changes. Assets are the original separate
   approved PNG artwork optimized as transparent WebP; no screenshot-as-UI. */
.yg-auth-gate[data-view="login"]{
  padding:0!important;isolation:isolate;background:#0b2450!important;
  overflow-y:auto!important;overflow-x:hidden!important;
}
.yg-auth-gate[data-view="login"]::before{
  background: url("/visual-v80/home-pc.webp") center / cover no-repeat!important;
  position:fixed!important;inset:0!important;animation:none!important;
  transform:none!important;z-index:-2!important
}
.yg-auth-gate[data-view="login"]::after{
  background:linear-gradient(90deg,#0416332b,#06162b12 30%,#06162b10 70%,#04163335)!important;
  animation:none!important;position:fixed!important;inset:0!important;z-index:-1!important
}
.yg-auth-gate[data-view="login"] .yg-auth-wrap{
  min-height:100dvh!important;max-width:100%!important;width:100%!important;
  box-sizing:border-box;display:flex!important;flex-direction:column!important;
  align-items:center;justify-content:center!important;
  margin:0 auto!important;padding:clamp(12px,1.6vh,24px) 12px!important;gap:0!important
}
.yg-auth-gate[data-view="login"] .yg-auth-top{
  z-index:2;position:relative;flex:none!important;display:block!important;
  width:clamp(260px,28vw,420px)!important;height:clamp(105px,18vh,166px)!important;
  margin:0 auto -28px!important;padding:0!important
}
.yg-auth-gate[data-view="login"] .yg-auth-top:before,
.yg-auth-gate[data-view="login"] .yg-auth-top small{display:none!important}
.yg-auth-gate[data-view="login"] .yg-auth-top b{
  background:url("/visual-v80/yugimon-official-logo.webp") center/contain no-repeat!important;
  width:100%!important;height:100%!important;font-size:0!important;
  margin:0!important;-webkit-text-stroke:0!important;
  filter:drop-shadow(0 5px 8px #01142b99)!important
}
.yg-auth-gate[data-view="login"] .yg-auth-top b span{display:none!important}
.yg-auth-gate[data-view="login"] #ygAuthContent{
  --yg-login-inner: min(480px, 100%);
  position:relative!important;display:flex!important;flex-direction:column!important;
  width:clamp(455px,38.5vw,560px)!important;max-width:calc(100vw - 18px)!important;
  min-height:690px!important;height:auto!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
  background: url("/visual-v81/login-panel.webp") center/100% 100% no-repeat!important;
  padding:clamp(76px,8vh,95px) clamp(55px,4vw,74px) 42px!important;
  box-sizing:border-box!important;backdrop-filter:none!important;
  animation:none!important;color:#fff!important;
  margin:0 auto!important
}
.yg-auth-gate[data-view="login"] #ygAuthContent::before{display:none!important}
.yg-auth-gate[data-view="login"] #ygAuthContent>h1{
  order:0;font-family:Georgia,serif!important;font-size:clamp(1.5rem,2vw,2.05rem)!important;
  font-weight:700!important;text-align:center!important;margin:0 0 14px!important;
  line-height:1.15!important;color:#f2f7ff!important;text-shadow:0 2px 7px #00152b
}
.yg-auth-gate[data-view="login"] #ygAuthContent>p:not(#ygMessage),
.yg-auth-gate[data-view="login"] #ygAuthContent .yg-alert{display:none!important}
.yg-auth-gate[data-view="login"] #ygLogin{
  order:1;display:flex!important;flex-direction:column!important;
  width:100%!important;margin:0!important;gap:11px!important
}
.yg-auth-gate[data-view="login"] #ygLogin label{
  position:relative!important;display:block!important;width:100%!important;
  margin:0!important;line-height:0!important;font-size:0!important;
  color:transparent!important
}
.yg-auth-gate[data-view="login"] #ygLogin label input{
  height:57px!important;min-height:0!important;
  display:block!important;width:100%!important;box-sizing:border-box!important;
  margin:0!important;padding:0 16px 0 64px!important;
  border:0!important;border-radius:8px!important;
  outline-offset:1px!important;
  background: url("/visual-v81/login-input.webp") center/100% 100% no-repeat!important;
  color:#fff!important;font:600 1rem system-ui,Segoe UI,Arial,sans-serif!important;
  text-shadow:0 1px 3px #001022;box-shadow:none!important
}
.yg-auth-gate[data-view="login"] #ygLogin label input::placeholder{color:#d4eaf9e8!important;opacity:1}
.yg-auth-gate[data-view="login"] #ygLogin label input:focus-visible{
  outline:2px solid #ffdd82!important;outline-offset:2px!important
}
.yg-auth-gate[data-view="login"] #ygLogin label:before{
  content:"♟";pointer-events:none;position:absolute;z-index:1;
  top:50%;transform:translateY(-50%);left:25px;
  color:#98e5ff!important;text-shadow:0 0 9px #36aeff;
  font-size:24px!important;line-height:1!important;
}
.yg-auth-gate[data-view="login"] #ygLogin label:has(input[name="password"]):before{
  content:"●";font-size:23px!important
}
.yg-auth-gate[data-view="login"] #ygLogin .yg-login-password{
  position:relative!important
}
.yg-auth-gate[data-view="login"] #ygLogin .yg-login-password input{padding-right:55px!important}
.yg-auth-gate[data-view="login"] #ygLogin .yg-show-password{
  position:absolute;z-index:2;right:14px;top:50%;transform:translateY(-50%);
  background:transparent;border:0;color:#9fe5ff;font-size:1.28rem;
  line-height:1;padding:8px;cursor:pointer;border-radius:7px
}
.yg-auth-gate[data-view="login"] #ygLogin .yg-show-password:focus-visible{
  outline:2px solid #ffdd82
}
.yg-auth-gate[data-view="login"] #ygDoLogin{
  background:url("/visual-v81/login-submit.webp") center/100% 100% no-repeat!important;
  color:transparent!important;font-size:0!important;
  min-height:0!important;height:85px!important;width:100%!important;
  display:block!important;border:0!important;margin:0!important;padding:0!important;
  border-radius:0!important;box-shadow:none!important;
  cursor:pointer!important;transition:filter .15s,transform .15s!important;
  filter:drop-shadow(0 4px 10px #d48d2070)!important
}
.yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions{
  order:3!important;display:flex!important;flex-direction:column!important;
  margin:2px 0 0!important;padding:0!important;gap:1px!important;width:100%!important
}
.yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions .yg-auth-button,
.yg-auth-gate[data-view="login"] #ygLoginPortalBack{
  display:block!important;flex:none!important;box-sizing:border-box!important;
  width:100%!important;height:70px!important;min-height:0!important;
  background-position:center!important;background-size:100% 100%!important;
  background-repeat:no-repeat!important;background-color:transparent!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
  margin:0!important;padding:0!important;
  color:transparent!important;font-size:0!important;line-height:0!important;
  transition:filter .15s,transform .15s!important
}
.yg-auth-gate[data-view="login"] #ygShowRegister{background-image:url("/visual-v81/login-register.webp")!important}
.yg-auth-gate[data-view="login"] #ygShowRecovery{background-image:url("/visual-v81/login-recovery.webp")!important}
.yg-auth-gate[data-view="login"] #ygGuest{background-image:url("/visual-v81/login-guest.webp")!important}
.yg-auth-gate[data-view="login"] #ygAuthContent .yg-login-foot{
  order:4!important;display:flex!important;width:100%!important;justify-content:center!important;
  margin:8px 0 0!important;padding:0!important
}
.yg-auth-gate[data-view="login"] #ygLoginPortalBack{
  background-image:url("/visual-v81/login-back.webp")!important;
  width:86%!important;height:62px!important;
}
.yg-auth-gate[data-view="login"] #ygAuthContent #ygMessage{
  order:2!important;margin:0!important;padding:0!important;
  color:#fae0ae!important;font:600 .85rem system-ui!important;text-align:center!important
}
.yg-auth-gate[data-view="login"] #ygMessage:empty{display:none!important}
.yg-auth-gate[data-view="login"] #ygDoLogin:hover,
.yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions button:hover,
.yg-auth-gate[data-view="login"] #ygLoginPortalBack:hover{
  filter:brightness(1.15) drop-shadow(0 0 5px #4fd0ff88)!important;
  transform:translateY(-2px)!important
}
.yg-auth-gate[data-view="login"] #ygDoLogin:active,
.yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions button:active,
.yg-auth-gate[data-view="login"] #ygLoginPortalBack:active{
  transform:translateY(2px) scale(.98)!important;filter:brightness(.86)!important
}
.yg-auth-gate[data-view="login"] #ygDoLogin:focus-visible,
.yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions button:focus-visible,
.yg-auth-gate[data-view="login"] #ygLoginPortalBack:focus-visible{
  outline:3px solid #ffe0a1!important;outline-offset:0!important;border-radius:8px!important
}
@media(max-width:700px){
 .yg-auth-gate[data-view="login"]::before{
   background-image:url("/visual-v80/home-mobile.webp")!important;
   background-position:center center!important
 }
 .yg-auth-gate[data-view="login"] .yg-auth-wrap{
   justify-content:flex-start!important;padding:12px 3px 20px!important;min-height:100dvh!important
 }
 .yg-auth-gate[data-view="login"] .yg-auth-top{
   width:min(345px,88vw)!important;height:133px!important;
   margin:0 auto -19px!important
 }
 .yg-auth-gate[data-view="login"] #ygAuthContent{
   width:min(445px,100vw)!important;max-width:100vw!important;
   padding:57px clamp(31px,8vw,46px) 26px!important;
   min-height:0!important;height:auto!important;
   margin:0 auto!important;
 }
 .yg-auth-gate[data-view="login"] #ygAuthContent>h1{font-size:clamp(1.5rem,7vw,2rem)!important;margin:0 0 9px!important}
 .yg-auth-gate[data-view="login"] #ygLogin{gap:5px!important}
 .yg-auth-gate[data-view="login"] #ygLogin label input{height:58px!important;font-size:1rem!important;padding-left:57px!important}
 .yg-auth-gate[data-view="login"] #ygLogin label:before{left:19px}
 .yg-auth-gate[data-view="login"] #ygDoLogin{height:78px!important}
 .yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions{gap:0!important}
 .yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions .yg-auth-button{height:63px!important}
 .yg-auth-gate[data-view="login"] #ygLoginPortalBack{height:55px!important}
 .yg-auth-gate[data-view="login"] #ygAuthContent .yg-login-foot{margin:4px 0 0!important}
}
@media(max-width:380px) and (max-height:720px){
 .yg-auth-gate[data-view="login"] .yg-auth-top{height:104px!important}
 .yg-auth-gate[data-view="login"] #ygAuthContent{padding-top:51px!important}
 .yg-auth-gate[data-view="login"] #ygLogin label input{height:48px!important}
 .yg-auth-gate[data-view="login"] #ygDoLogin{height:66px!important}
 .yg-auth-gate[data-view="login"] #ygAuthContent .yg-actions .yg-auth-button{height:55px!important}
 .yg-auth-gate[data-view="login"] #ygLoginPortalBack{height:47px!important}
}
@media(prefers-reduced-motion:reduce){
 .yg-auth-gate[data-view="login"] button{transition:none!important}
}

/* Alignment correction against the frame's baked-in crystal ornament. */
.yg-auth-gate[data-view="login"] #ygAuthContent{padding-top:118px!important}
.yg-auth-gate[data-view="login"] #ygLogin label:before{
 content:""!important;display:block;width:23px;height:23px;
 background:#a5ecff;top:50%;left:26px;transform:translateY(-50%);
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.yg-auth-gate[data-view="login"] #ygLogin label:has(input[name="password"]):before{
 content:""!important;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media(max-width:700px){
 .yg-auth-gate[data-view="login"] #ygAuthContent{
   width:calc(100vw - 6px)!important;
   padding-top:102px!important;
 }
 .yg-auth-gate[data-view="login"] #ygLogin label:before{left:20px}
}
@media(max-width:380px) and (max-height:720px){
 .yg-auth-gate[data-view="login"] #ygAuthContent{padding-top:92px!important}
}
