/* Desktop login artwork: high-resolution headquarters with restrained optical motion. */
@media (min-width: 901px) {
  @keyframes opc-login-panel-in {
    from { opacity: 0; transform: translate3d(-16px, 9px, 0); filter: blur(4px); }
    to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
  }
  @keyframes opc-login-brand-in {
    from { opacity: 0; transform: translate3d(0, -10px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  @keyframes opc-login-caption-in {
    from { opacity: 0; transform: translate3d(12px, 0, 0); }
    to { opacity: .9; transform: translate3d(0, 0, 0); }
  }
  @keyframes opc-login-scan {
    from { transform: translateX(-115%) skewX(-18deg); opacity: 0; }
    18% { opacity: .55; }
    55% { opacity: .2; }
    to { transform: translateX(115%) skewX(-18deg); opacity: 0; }
  }
  @keyframes opc-login-breathe {
    0%, 100% { opacity: .5; transform: scale(1); }
    50% { opacity: .85; transform: scale(1.04); }
  }

  .gc-login {
    isolation: isolate;
    background-image:
      radial-gradient(ellipse at 75% 22%, rgba(153, 203, 255, .12), transparent 22%),
      radial-gradient(ellipse at 83% 70%, rgba(255, 197, 116, .1), transparent 28%),
      linear-gradient(90deg, rgba(3, 12, 20, .76), rgba(3, 12, 20, .18) 57%, rgba(3, 12, 20, .04)),
      url('../img/game-headquarters-desktop-hd-3840-20261013.webp');
    background-position: center, center, center, center;
    background-size: cover, cover, cover, cover;
  }
  .gc-login::before {
    z-index: 0;
    background:
      radial-gradient(circle at 73% 23%, rgba(174, 226, 255, .18) 0 1px, transparent 2px),
      radial-gradient(ellipse at 74% 23%, rgba(130, 201, 255, .18), transparent 19%),
      radial-gradient(ellipse at 84% 70%, rgba(255, 193, 112, .13), transparent 27%),
      linear-gradient(90deg, rgba(4, 14, 23, .96) 0%, rgba(4, 14, 23, .82) 25%, rgba(4, 14, 23, .33) 52%, rgba(4, 14, 23, .04) 81%),
      linear-gradient(0deg, rgba(3, 10, 17, .72), transparent 48%);
    animation: opc-login-breathe 10s ease-in-out infinite;
    pointer-events: none;
  }
  .gc-login::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: -20% -12%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(190, 234, 255, .1) 47%, rgba(255, 220, 160, .08) 50%, transparent 58%);
    transform: translateX(-115%) skewX(-18deg);
    animation: opc-login-scan 14s cubic-bezier(.35, .7, .35, 1) 1.1s infinite;
    mix-blend-mode: screen;
  }
  .gc-login > * { z-index: 2; }
  .gc-login-brand { animation: opc-login-brand-in .7s cubic-bezier(.2, .75, .25, 1) both; text-shadow: 0 2px 18px rgba(0, 0, 0, .65); }
  .gc-login-brand img { filter: drop-shadow(0 0 13px rgba(141, 218, 226, .35)); }
  .gc-login-panel {
    box-sizing: border-box;
    padding: 31px 35px 28px 31px;
    margin-left: -31px;
    border-left: 1px solid rgba(159, 220, 230, .5);
    border-top: 1px solid rgba(178, 215, 230, .12);
    border-radius: 0 18px 18px 0;
    background: linear-gradient(105deg, rgba(7, 20, 30, .7), rgba(7, 20, 30, .28) 75%, transparent);
    box-shadow: inset 13px 0 32px rgba(120, 200, 220, .045), 14px 18px 45px rgba(0, 0, 0, .18);
    backdrop-filter: blur(9px) saturate(1.06);
    animation: opc-login-panel-in .82s cubic-bezier(.2, .75, .25, 1) .12s both;
  }
  .gc-login-panel::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(130, 219, 224, .85) 24%, rgba(217, 181, 113, .5) 74%, transparent);
    box-shadow: 0 0 18px rgba(115, 217, 224, .32);
    pointer-events: none;
  }
  .gc-login-panel h1 { text-shadow: 0 5px 24px rgba(0, 0, 0, .38); }
  .gc-login form input {
    background: rgba(10, 28, 39, .78) !important;
    border-color: rgba(156, 192, 202, .42) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .22), 0 0 0 rgba(130, 214, 226, 0);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  }
  .gc-login form input:focus {
    background: rgba(13, 36, 50, .94) !important;
    border-color: rgba(139, 224, 226, .85) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .2), 0 0 0 3px rgba(113, 215, 219, .12), 0 0 22px rgba(78, 190, 201, .12);
  }
  .gc-login-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-shadow: 0 7px 22px rgba(194, 153, 78, .16), inset 0 1px rgba(255, 245, 211, .45) !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
  }
  .gc-login-submit::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(105deg, transparent 26%, rgba(255, 247, 218, .52) 50%, transparent 74%);
    transform: translateX(-120%);
    transition: transform .7s cubic-bezier(.25, .7, .35, 1);
  }
  .gc-login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(194, 153, 78, .28), inset 0 1px rgba(255, 245, 211, .65) !important; }
  .gc-login-submit:hover:not(:disabled)::after { transform: translateX(120%); }
  .gc-login-caption { animation: opc-login-caption-in .8s ease .45s both; text-shadow: 0 3px 13px rgba(0, 0, 0, .75); }
  .gc-login-caption::before {
    content: '';
    display: inline-block;
    width: 74px;
    height: 1px;
    margin: 0 0 8px auto;
    background: linear-gradient(90deg, transparent, rgba(212, 190, 143, .8));
  }
}

@media (min-width: 901px) and (max-width: 1150px) {
  .gc-login-panel { margin-left: -18px; padding-left: 18px; padding-right: 22px; }
  .gc-login-caption { right: 28px; max-width: 315px; }
}

@media (min-width: 901px) and (max-width: 1920px) and (max-resolution: 1.49dppx) {
  .gc-login {
    background-image:
      radial-gradient(ellipse at 75% 22%, rgba(153, 203, 255, .12), transparent 22%),
      radial-gradient(ellipse at 83% 70%, rgba(255, 197, 116, .1), transparent 28%),
      linear-gradient(90deg, rgba(3, 12, 20, .76), rgba(3, 12, 20, .18) 57%, rgba(3, 12, 20, .04)),
      url('../img/game-headquarters-desktop-hd-2560-20261013.webp');
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .gc-login, .gc-login::before, .gc-login::after, .gc-login > *, .gc-login-panel::before { animation: none !important; transition: none !important; }
}

[data-game-motion="off"] .gc-login, [data-game-motion="off"] .gc-login::before, [data-game-motion="off"] .gc-login::after,
[data-game-motion="off"] .gc-login > *, [data-game-motion="off"] .gc-login-panel::before { animation: none !important; transition: none !important; }
