/* Login autoral do Ultimate Poke Idle: Central do Treinador. */
#auth-screen {
  --auth-ink: #123d52;
  --auth-muted: #547788;
  --auth-blue: #3c9dd1;
  --auth-teal: #20a99c;
  --auth-green: #42c991;
  --auth-paper: rgba(244, 254, 255, .95);
  --auth-line: rgba(36, 137, 155, .22);
}

#auth-screen .scrim {
  background:
    linear-gradient(90deg, rgba(4, 49, 68, .92) 0%, rgba(5, 70, 86, .82) 22%, rgba(9, 91, 98, .36) 40%, transparent 58%),
    linear-gradient(0deg, rgba(3, 47, 64, .58) 0%, transparent 30%);
}

#auth-screen .ip-panel {
  left: clamp(28px, 5.5vw, 96px);
  width: min(92vw, 470px);
  transform: none;
}

#auth-screen .ip-logo {
  width: 330px;
  margin-bottom: 0;
}

#auth-screen .tag {
  margin: 0 0 14px;
  color: #d9fff4;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: drop-shadow(0 3px 10px rgba(1, 34, 49, .55));
  font-size: 13px;
  letter-spacing: .09em;
}

#auth-screen .launch-countdown-card {
  position: relative;
  gap: 9px;
  margin: 0 8px 14px 0;
  padding: 13px 16px 13px 20px;
  overflow: hidden;
  border: 1px solid rgba(151, 239, 222, .34);
  border-radius: 8px 24px 24px 24px;
  background: linear-gradient(120deg, rgba(6, 75, 94, .92), rgba(9, 53, 78, .86));
  box-shadow: 0 16px 38px rgba(2, 40, 56, .28), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  animation: none;
}

#auth-screen .launch-countdown-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--auth-blue), var(--auth-green));
}

#auth-screen .launch-header {
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(181, 239, 234, .14);
}

#auth-screen .launch-badge {
  padding: 4px 9px;
  border: 1px solid rgba(183, 250, 235, .28);
  border-radius: 999px;
  background: rgba(67, 196, 172, .16);
  color: #baffea;
  font-size: 9px;
  letter-spacing: .11em;
}

#auth-screen .launch-timer {
  color: #f2fffa;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 17px;
  text-shadow: none;
}

#auth-screen .event-title { color: #83f0d2; }
#auth-screen .event-desc { color: #d9eff2; }

#auth-screen .card {
  position: relative;
  width: calc(100% - 8px);
  margin-left: 8px;
  padding: 23px 24px 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px 34px 34px 34px;
  background: linear-gradient(145deg, var(--auth-paper), rgba(220, 247, 245, .93));
  color: var(--auth-ink);
  box-shadow: 0 32px 72px rgba(2, 46, 63, .34), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(1.12);
  filter: none;
  image-rendering: auto;
}

#auth-screen .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 126px;
  height: 6px;
  border-radius: 0 0 8px 0;
  background: linear-gradient(90deg, var(--auth-blue), var(--auth-green));
}

#auth-screen .card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -68px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 207, 179, .18), transparent 68%);
  pointer-events: none;
}

#auth-screen .auth-kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #2d8492;
  font-size: 9px;
  letter-spacing: .16em;
}

#auth-screen .auth-kicker span {
  width: 20px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--auth-blue), var(--auth-green));
}

#auth-screen .hd {
  position: relative;
  z-index: 1;
  gap: 12px;
  margin: 0 0 4px;
}

#auth-screen .hd::before {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  border-radius: 17px;
  background: #ddf6f2 url('/assets/brand/ultimate-poke-idle/portal-icons/trainer.png') center / 40px 40px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(45, 147, 151, .14), 0 9px 20px rgba(17, 102, 118, .13);
  filter: none;
}

#auth-screen .hd h1 {
  color: var(--auth-ink);
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -.025em;
  text-shadow: none;
}

#auth-screen .hd2 {
  position: relative;
  z-index: 1;
  margin: 0 0 17px 62px;
  color: var(--auth-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

#auth-screen .field {
  position: relative;
  z-index: 1;
  height: 59px;
  margin-bottom: 10px;
  border: 1px solid var(--auth-line);
  border-radius: 16px 8px 16px 16px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 #fff;
  image-rendering: auto;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

#auth-screen .field::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e1f6f8, #d8f3eb);
  box-shadow: inset 0 0 0 1px rgba(47, 145, 159, .12);
}

#auth-screen .field:focus-within {
  border-color: rgba(34, 169, 155, .58);
  background: rgba(255,255,255,.94);
  box-shadow: 0 0 0 4px rgba(39, 178, 161, .12), inset 0 1px 0 #fff;
  filter: none;
  transform: translateY(-1px);
}

#auth-screen .field > .ic {
  display: block;
  left: 19px;
  z-index: 2;
  width: 19px;
  height: 19px;
  color: #25899a;
}

#auth-screen .field-label {
  position: absolute;
  left: 59px;
  top: 8px;
  z-index: 2;
  color: #398091;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

#auth-screen .field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 17px 48px 0 59px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--auth-ink);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: none;
}

#auth-screen .field input:focus { border: 0; background: transparent; box-shadow: none; }
#auth-screen .field input::placeholder { color: #8aa5af; font-weight: 500; }
#auth-screen .eye { right: 13px; z-index: 3; color: #29899b; }
#auth-screen .eye:hover { color: #156476; }

#auth-screen .row {
  position: relative;
  z-index: 1;
  margin: 2px 2px 13px;
  color: var(--auth-muted);
}

#auth-screen .row label { color: var(--auth-muted); }
#auth-screen .row a { color: #148f7c; font-weight: 750; }
#auth-screen .row input { border: 2px solid #65afb8; border-radius: 5px; box-shadow: none; }
#auth-screen .row input:checked { border-color: var(--auth-green); background: var(--auth-green); }

#auth-screen .btn {
  position: relative;
  z-index: 1;
  min-height: 52px;
  border-radius: 17px 8px 17px 17px;
  padding: 0 54px 0 22px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .07em;
  text-shadow: none;
  image-rendering: auto;
}

#auth-screen .btn svg {
  position: absolute;
  right: 18px;
  display: block;
  width: 18px;
  height: 18px;
}

#auth-screen .btn.enter {
  border: 0;
  background: linear-gradient(100deg, var(--auth-blue), var(--auth-teal) 55%, var(--auth-green));
  color: #fff;
  box-shadow: 0 13px 26px rgba(20, 139, 151, .24), inset 0 1px 0 rgba(255,255,255,.3);
}

#auth-screen .btn.create {
  min-height: 49px;
  border: 1px dashed rgba(35, 137, 151, .42);
  background: rgba(255,255,255,.54);
  color: #1e6d7e;
  box-shadow: none;
}

#auth-screen .btn.enter:hover,
#auth-screen .btn.create:hover {
  border-color: rgba(35, 137, 151, .68);
  background-color: rgba(255,255,255,.76);
  color: inherit;
  filter: brightness(1.04);
}

#auth-screen .btn.enter:hover { color: #fff; }

#auth-screen .divx {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  gap: 8px;
  margin: 13px 2px 8px;
  color: #638391;
  font-size: 9px;
  letter-spacing: .1em;
}

#auth-screen .divx::before {
  width: 20px;
  flex: 0 0 20px;
  height: 3px;
  border-radius: 99px;
  background: var(--auth-green);
  opacity: 1;
}

#auth-screen .divx::after { display: none; }
#auth-screen .auth-err { color: #c84747; text-shadow: none; }

@media (max-width: 820px) {
  #auth-screen { background-position: 63% center; }
  #auth-screen .scrim {
    background:
      linear-gradient(90deg, rgba(4,55,73,.95) 0%, rgba(6,73,85,.79) 50%, rgba(7,91,95,.24) 82%, transparent),
      linear-gradient(0deg, rgba(3,48,64,.72), transparent 46%);
  }
  #auth-screen .ip-panel {
    left: 0;
    right: 0;
    width: min(95vw, 440px);
    margin: 0 auto;
    transform: none;
  }
  #auth-screen .ip-logo { width: 255px; }
  #auth-screen .card { padding: 21px 22px 20px; }
}

@media (max-width: 500px) {
  #auth-screen .ip-panel { width: calc(100vw - 20px); }
  #auth-screen .ip-logo { width: 230px; }
  #auth-screen .tag { margin-bottom: 9px; font-size: 10.5px; }
  #auth-screen .launch-countdown-card { margin-right: 5px; margin-bottom: 10px; padding: 11px 13px 11px 17px; }
  #auth-screen .launch-timer { font-size: 15px; }
  #auth-screen .event-title { font-size: 11.5px; }
  #auth-screen .event-desc { font-size: 10.5px; }
  #auth-screen .card { width: calc(100% - 5px); margin-left: 5px; padding: 18px 17px 17px; border-radius: 8px 27px 27px 27px; }
  #auth-screen .auth-kicker { margin-bottom: 7px; }
  #auth-screen .hd::before { width: 43px; height: 43px; flex-basis: 43px; background-size: 35px 35px; border-radius: 14px; }
  #auth-screen .hd h1 { font-size: 18px; }
  #auth-screen .hd2 { margin: 0 0 13px 55px; font-size: 11px; }
  #auth-screen .field { height: 54px; margin-bottom: 8px; }
  #auth-screen .field::before { top: 8px; width: 36px; height: 36px; }
  #auth-screen .field > .ic { left: 18px; width: 18px; height: 18px; }
  #auth-screen .field-label { left: 54px; top: 7px; }
  #auth-screen .field input { padding: 16px 44px 0 54px; font-size: 12.5px; }
  #auth-screen .row { font-size: 11px; }
  #auth-screen .btn { min-height: 48px; font-size: 11.5px; }
  #auth-screen .btn.create { min-height: 45px; }
}

@media (max-height: 760px) {
  #auth-screen .ip-panel {
    justify-content: flex-start;
    padding: 10px 0 72px;
    overflow-y: auto;
  }
  #auth-screen .ip-logo { width: 210px; }
  #auth-screen .tag { margin-bottom: 7px; }
  #auth-screen .launch-countdown-card { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #auth-screen .field,
  #auth-screen .btn { transition: none; }
}
