.header-actions button { font-family: inherit; }

.login-dialog {
  width: min(900px, calc(100vw - 30px));
  padding: 42px;
  color: #fff;
  border: 1px solid rgba(255, 193, 67, .5);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% -10%, rgba(204, 28, 21, .3), transparent 40%),
    linear-gradient(145deg, #210706, #090403 64%, #160505);
  box-shadow: 0 38px 120px rgba(0, 0, 0, .78), 0 0 55px rgba(190, 25, 18, .2), inset 0 0 0 3px rgba(0, 0, 0, .58);
  overflow: hidden;
}

.login-dialog::backdrop {
  background: rgba(3, 1, 1, .86);
  backdrop-filter: blur(10px);
}

.login-dialog[open] { animation: login-in .28s ease-out; }

.login-glow {
  position: absolute;
  left: 50%;
  top: -170px;
  width: 520px;
  height: 330px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 72, 27, .29), transparent 67%);
  pointer-events: none;
}

.login-close {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 205, 101, .34);
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #ffd878;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.login-close:hover,
.login-close:focus-visible {
  transform: rotate(8deg) scale(1.06);
  border-color: #ffca5c;
  background: #851715;
  outline: 0;
}

.login-brand {
  position: relative;
  display: flex;
  justify-content: center;
  margin: -14px auto -2px;
}

.login-brand-logo {
  width: min(330px, 64vw);
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .48)) drop-shadow(0 0 13px rgba(255, 76, 23, .25));
}

.login-dialog .kicker {
  margin: 0 0 8px;
  color: #f3ba43;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
}

.login-dialog h2 {
  margin: 0;
  color: #fff8e8;
  text-align: center;
  font: 800 clamp(31px, 4vw, 47px)/1.06 var(--font-display, "Segoe UI", Arial, sans-serif);
  letter-spacing: -.045em;
}

.login-dialog > p:not(.kicker) {
  max-width: 560px;
  margin: 12px auto 28px;
  color: #cdb8ad;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.login-choice-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.login-choice {
  min-width: 0;
  padding: 17px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 194, 74, .22);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(110, 20, 16, .65), rgba(14, 7, 5, .92));
  box-shadow: 0 15px 32px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
  transform: translateY(0);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.login-choice:hover,
.login-choice:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(255, 207, 102, .82);
  background: linear-gradient(150deg, rgba(157, 29, 22, .82), rgba(21, 8, 5, .96));
  box-shadow: 0 23px 45px rgba(0, 0, 0, .48), 0 0 25px rgba(226, 44, 24, .25);
  outline: 0;
}

.choice-art {
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(255, 188, 58, .16), rgba(0, 0, 0, .34));
}

.choice-art img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .42));
}

.choice-platform-mosaic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 188, 58, .27), transparent 42%),
    linear-gradient(145deg, rgba(105, 14, 14, .78), rgba(0, 0, 0, .55));
}

.choice-platform-mosaic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 219, 134, .28);
  pointer-events: none;
}

.choice-platform-mosaic img {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 210, 101, .72);
  border-radius: 14px;
  object-fit: cover;
  background: #100504;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .58), 0 0 10px rgba(235, 65, 26, .2);
  transition: transform .25s ease, filter .25s ease;
}

.choice-platform-mosaic img:nth-child(1) { left: 4%; top: 30px; transform: rotate(-13deg) scale(.86); z-index: 1; }
.choice-platform-mosaic img:nth-child(2) { left: 22%; top: 14px; transform: rotate(-7deg) scale(.94); z-index: 2; }
.choice-platform-mosaic img:nth-child(3) { left: 50%; top: 18px; transform: translateX(-50%) scale(1.12); z-index: 5; }
.choice-platform-mosaic img:nth-child(4) { right: 22%; top: 14px; transform: rotate(7deg) scale(.94); z-index: 3; }
.choice-platform-mosaic img:nth-child(5) { right: 4%; top: 30px; transform: rotate(13deg) scale(.86); z-index: 1; }

.login-choice:hover .choice-platform-mosaic img:nth-child(1) { transform: translateX(-3px) rotate(-16deg) scale(.89); }
.login-choice:hover .choice-platform-mosaic img:nth-child(2) { transform: translateY(-3px) rotate(-8deg) scale(.97); }
.login-choice:hover .choice-platform-mosaic img:nth-child(3) { transform: translate(-50%, -5px) scale(1.16); filter: brightness(1.1); }
.login-choice:hover .choice-platform-mosaic img:nth-child(4) { transform: translateY(-3px) rotate(8deg) scale(.97); }
.login-choice:hover .choice-platform-mosaic img:nth-child(5) { transform: translateX(3px) rotate(16deg) scale(.89); }

.choice-copy {
  display: flex;
  flex-direction: column;
  padding: 17px 2px 15px;
}

.choice-copy small {
  color: #dfa947;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.choice-copy strong {
  margin-top: 6px;
  color: #fff9eb;
  font: 800 23px/1.05 var(--font-display, "Segoe UI", Arial, sans-serif);
}

.choice-copy em {
  margin-top: 7px;
  color: #bda79d;
  font-size: 10px;
  font-style: normal;
}

.choice-button {
  margin-top: auto;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 222, 139, .5);
  border-radius: 12px;
  background: linear-gradient(105deg, #a81719, #e23a1d 55%, #b92813);
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 7px 18px rgba(122, 5, 6, .38);
  color: #fff7df;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .035em;
}

.choice-button b {
  color: #ffd16a;
  font-size: 17px;
  transition: transform .2s ease;
}

.login-choice:hover .choice-button b { transform: translateX(4px); }

.login-security {
  display: block;
  margin-top: 19px;
  color: #927e75;
  text-align: center;
  font-size: 9px;
  letter-spacing: .08em;
}

@keyframes login-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .login-dialog { padding: 34px 20px 26px; }
  .login-brand-logo { height: 118px; }
  .login-choice-grid { grid-template-columns: 1fr; max-height: 54vh; overflow-y: auto; padding: 4px; }
  .login-choice { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px; }
  .choice-art { width: 90px; height: 82px; grid-row: 1 / 3; }
  .choice-copy { padding: 7px 0 0; }
  .choice-button { grid-column: 2; }
  .choice-platform-mosaic img { width: 43px; height: 43px; border-radius: 9px; }
  .choice-platform-mosaic img:nth-child(1) { left: 0; top: 30px; }
  .choice-platform-mosaic img:nth-child(2) { left: 10px; top: 9px; }
  .choice-platform-mosaic img:nth-child(3) { top: 21px; }
  .choice-platform-mosaic img:nth-child(4) { right: 10px; top: 9px; }
  .choice-platform-mosaic img:nth-child(5) { right: 0; top: 30px; }
}
