#flyff-login-screen[hidden] { display: none; }

#flyff-login-screen {
  position: fixed;
  inset: 0;
  z-index: 24000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #20170f;
  background: #000 url('/WebClient/generated/images/da84d532b8f3e584eb80.png') center / 100% 100% no-repeat;
  font: 12px Tahoma, Verdana, sans-serif;
  user-select: none;
}

#flyff-login-form {
  position: relative;
  box-sizing: border-box;
  width: 460px;
  height: 270px;
  overflow: hidden;
  border: 0;
  color-scheme: light;
  /* The captured native client is the visual authority for APP_LOGIN. Its
     460x270 frame is assembled from the original translucent 16px theme
     tiles, allowing screen.bmp to remain faintly visible through the body. */
  background-color: transparent;
  background-image:
    url('/WebClient/generated/images/5b6908f5e6799daeb89f.png'),
    url('/WebClient/generated/images/a3d9ab33f7fce74c2eff.png'),
    url('/WebClient/generated/images/ea29c8edc56f2cbc9328.png'),
    url('/WebClient/generated/images/a2bd4bbd65887496e523.png'),
    url('/WebClient/generated/images/b8dc335e0360c5b1ae2b.png'),
    url('/WebClient/generated/images/0cd24eaf3b6f44c7fe9a.png'),
    url('/WebClient/generated/images/f80379836d5c7ef1d649.png'),
    url('/WebClient/generated/images/a42bcc50139f6694b671.png'),
    url('/WebClient/generated/images/59d51c3718e5dc0fc55d.png'),
    url('/WebClient/generated/images/9ae88c0026062a0d1d18.png'),
    url('/WebClient/generated/images/d3f9077df02db6442db6.png'),
    url('/WebClient/generated/images/40ea52e15b8a2613bf43.png');
  background-position:
    0 0, 444px 0, 0 16px, 444px 16px, 0 254px, 444px 254px,
    0 0, 0 16px, 0 32px, 444px 32px, 0 254px, 0 32px;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y, repeat-x, repeat;
  filter: drop-shadow(0 3px 5px rgb(0 0 0 / 55%));
  transform-origin: center;
}

#flyff-login-caption {
  position: absolute;
  left: 7px;
  top: 3px;
  z-index: 2;
  height: 15px;
  overflow: hidden;
  color: #fff8e2;
  font: 11px/14px Tahoma, Verdana, sans-serif;
  text-shadow: 1px 1px 0 #963c35, -1px 0 0 #963c35;
  white-space: nowrap;
  pointer-events: none;
}

.flyff-login-heading {
  position: absolute;
  z-index: 1;
  height: 16px;
  overflow: hidden;
  color: #176ca9;
  font: 12px/16px Tahoma, Verdana, sans-serif;
  white-space: nowrap;
}

#flyff-login-account-label { left: 14px; top: 34px; }
#flyff-login-password-label { left: 14px; top: 83px; }
#flyff-login-fast-label { left: 214px; top: 34px; }

#flyff-login-account,
#flyff-login-form input[type='password'],
#flyff-login-account-list {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: #17120d;
  background-color: #f7f4ec;
  /* WTYPE_EDITCTRL and WTYPE_LISTBOX use the native WndEditTile00..08
     corners, edges, and translucent center. */
  background-image:
    url('/WebClient/generated/images/8537d63f414ff8d103ba.png'),
    url('/WebClient/generated/images/62f899fae317fbbd6e2c.png'),
    url('/WebClient/generated/images/e2c70d9f9fb22d76ab52.png'),
    url('/WebClient/generated/images/c4a62c910fad63200f97.png'),
    url('/WebClient/generated/images/31cbd626ca66171d968f.png'),
    url('/WebClient/generated/images/ed6ea9e9702b1503259f.png'),
    url('/WebClient/generated/images/11c10f25e24990139479.png'),
    url('/WebClient/generated/images/06676f96d4dc7a104cff.png'),
    url('/WebClient/generated/images/184654b04c0ad49ce6aa.png');
  background-position:
    left top, right top, left bottom, right bottom,
    left top, left bottom, left top, right top, left top;
  background-repeat:
    no-repeat, no-repeat, no-repeat, no-repeat,
    repeat-x, repeat-x, repeat-y, repeat-y, repeat;
  font: 12px/16px Tahoma, Verdana, sans-serif;
}

#flyff-login-account,
#flyff-login-form input[type='password'] {
  left: 14px;
  width: 160px;
  height: 18px;
  padding: 1px 5px;
}

#flyff-login-account:focus-visible,
#flyff-login-form input[type='password']:focus-visible,
#flyff-login-account-list:focus-visible {
  outline: 1px dotted #55412b;
  outline-offset: -3px;
}

#flyff-login-account {
  left: 14px;
  top: 58px;
  width: 160px;
  height: 18px;
}
#flyff-login-password { top: 103px; }

#flyff-login-account-list {
  left: 207px;
  top: 59px;
  width: 240px;
  height: 114px;
  padding: 8px 24px 7px 13px;
  overflow-y: scroll;
  color-scheme: light;
  scrollbar-color: #7e67aa rgb(255 255 255 / 45%);
  scrollbar-width: auto;
}

#flyff-login-account-list option {
  min-height: 15px;
  padding: 0;
  color: #17120d;
  background: transparent;
  font: 12px/15px Tahoma, Verdana, sans-serif;
}

#flyff-login-account-list option:checked {
  color: #17120d;
  background: transparent;
}

#flyff-login-account-list::-webkit-scrollbar { width: 24px; }
#flyff-login-account-list::-webkit-scrollbar-track {
  background: rgb(255 255 255 / 42%);
}
#flyff-login-account-list::-webkit-scrollbar-thumb {
  min-height: 12px;
  border: 4px solid transparent;
  background: url('/WebClient/generated/images/38dbbb64bc4cfb39c429.png') center / 16px 4px repeat-y;
  background-clip: content-box;
}
#flyff-login-account-list::-webkit-scrollbar-button:single-button {
  display: block;
  width: 24px;
  height: 16px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
}
#flyff-login-account-list::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image:
    linear-gradient(rgb(255 255 255 / 42%), rgb(255 255 255 / 42%)),
    url('/WebClient/generated/images/ef6ed101223a05a9a454.png');
  background-position: right top, 4px 0;
  background-size: 4px 16px, 64px 16px;
}
#flyff-login-account-list::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image:
    linear-gradient(rgb(255 255 255 / 42%), rgb(255 255 255 / 42%)),
    url('/WebClient/generated/images/7bce6ea080ac5a3360d5.png');
  background-position: right top, 4px 0;
  background-size: 4px 16px, 64px 16px;
}
#flyff-login-account-list::-webkit-scrollbar-corner { background: transparent; }

.flyff-native-check {
  position: absolute;
  left: 34px;
  height: 14px;
  color: #645d57;
  font: 12px/14px Tahoma, Verdana, sans-serif;
  white-space: nowrap;
}

.flyff-native-check.save { top: 143px; }

.flyff-native-check input {
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0 2px 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  vertical-align: -2px;
  background: transparent url('/WebClient/generated/images/d70b19401dc9f13aac3b.png') -14px 0 no-repeat;
  cursor: pointer;
}

.flyff-native-check input:checked { background-position: -42px 0; }
.flyff-native-check:hover input:not(:checked) { background-position: 0 0; }
.flyff-native-check:hover input:checked { background-position: -28px 0; }
.flyff-native-check input:focus-visible {
  outline: 1px dotted #382515;
  outline-offset: 1px;
}

/* Keep the existing show-password control available to keyboard and screen
   reader users without adding a non-native control to the captured layout. */
.flyff-native-check.reveal {
  left: 14px;
  top: 123px;
  z-index: 3;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.flyff-native-check.reveal:focus-within {
  width: auto;
  height: 18px;
  padding: 1px 4px;
  overflow: visible;
  clip-path: none;
  background: rgb(249 245 237 / 94%);
}

#flyff-login-caps {
  display: none;
  position: absolute;
  left: 14px;
  top: 123px;
  width: 160px;
  height: 15px;
  overflow: hidden;
  color: #982d25;
  font: 10px/15px Tahoma, Verdana, sans-serif;
  white-space: nowrap;
}

#flyff-login-caps[data-active='true'] { display: block; }

.flyff-sprite-button {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: transparent;
  background-color: transparent;
  background-repeat: no-repeat;
  cursor: pointer;
  font: 0/0 sans-serif;
}

.flyff-sprite-button:focus-visible {
  outline: 1px dotted #382515;
  outline-offset: 1px;
}

#flyff-login-close {
  right: 4px;
  top: 5px;
  z-index: 3;
  width: 15px;
  height: 14px;
  background-image: url('/WebClient/generated/images/5ca93c335ac43c2529ee.png');
  background-position: -15px 0;
}
#flyff-login-close:hover { background-position: 0 0; }
#flyff-login-close:active { background-position: -30px 0; }

#flyff-login-submit,
#flyff-login-fast-submit,
#flyff-login-quit {
  width: 140px;
  height: 20px;
  background-position: -140px 0;
}

#flyff-login-submit,
#flyff-login-fast-submit {
  background-image: url('/WebClient/generated/images/4363d8d4dba528d9975f.png');
}

#flyff-login-submit { left: 14px; top: 173px; }
#flyff-login-fast-submit { left: 250px; top: 192px; }

#flyff-login-submit:hover:not(:disabled),
#flyff-login-fast-submit:hover:not(:disabled) { background-position: 0 0; }
#flyff-login-submit:active:not(:disabled),
#flyff-login-fast-submit:active:not(:disabled) { background-position: -280px 0; }
#flyff-login-submit:disabled,
#flyff-login-fast-submit:disabled { background-position: -420px 0; cursor: wait; }

#flyff-login-quit {
  left: 14px;
  top: 203px;
  background-image: url('/WebClient/generated/images/5a05a1873f90b742aa17.png');
}
#flyff-login-quit:hover { background-position: 0 0; }
#flyff-login-quit:active { background-position: -280px 0; }

#flyff-login-fast-save,
#flyff-login-remove {
  top: 223px;
  width: 72px;
  height: 20px;
  background-position: -72px 0;
}

#flyff-login-fast-save {
  left: 234px;
  background-image: url('/WebClient/generated/images/709a57cbee6f84e78cd8.png');
}

#flyff-login-remove {
  left: 344px;
  background-image: url('/WebClient/generated/images/a823b4f779c180758e13.png');
}

#flyff-login-fast-save:hover,
#flyff-login-remove:hover { background-position: 0 0; }
#flyff-login-fast-save:active,
#flyff-login-remove:active { background-position: -144px 0; }

#flyff-login-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#flyff-login-screen[data-error='true'] #flyff-login-status {
  left: 14px;
  right: 14px;
  bottom: 7px;
  width: auto;
  height: 15px;
  overflow: hidden;
  clip-path: none;
  color: #a11c12;
  font: 10px/15px Tahoma, Verdana, sans-serif;
  text-align: center;
  text-overflow: ellipsis;
}

@media (max-width: 459px), (max-height: 269px) {
  #flyff-login-form {
    scale: min(1, calc(100vw / 460px), calc(100vh / 270px));
  }
}
