/* login.css - the boot splash, the sign-in screen and the in-game sign-in
 * prompt (2026-10-19, the Ember redesign - DESIGN.md). */

/* ---- The splash (index.html #boot-msg, removed by BootScene.exit) ---- */
.ed-boot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  animation: ed-fade-in 500ms var(--ed-ease) both;
}
.ed-boot__bar {
  position: relative;
  width: 168px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 176, 110, 0.12);
}
.ed-boot__bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  background: linear-gradient(90deg, transparent, #ff9a52, #ffdcae, #ff9a52, transparent);
  animation: ed-boot-sweep 1.25s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes ed-boot-sweep { to { left: 100%; } }

/* ---- Sign-in ---- */
.ed-login__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: min(404px, 100%);
}
.ed-login__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 26px 28px 24px;
  animation: ed-rise-in 420ms var(--ed-ease) 60ms both;
}
.ed-login__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 2px; }
.ed-login__title {
  margin: 0;
  font-size: calc(20px * var(--ed-fs));
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ed-text);
}
.ed-login__lede { margin: 0; font-size: calc(15px * var(--ed-fs)); line-height: 1.5; color: var(--ed-text-2); }
/* AN INVITE (2026-11-13, CrazyGames' frame - LoginScene's Play now card):
 * who invited the player, under the card's lede. */
.ed-login__invited { margin: 0; font-size: calc(15px * var(--ed-fs)); line-height: 1.5; font-weight: 600; color: var(--ed-gold-300); }
.ed-login__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ed-line-faint);
  border-radius: var(--ed-r);
  background: rgba(6, 5, 8, 0.35);
}
.ed-login__checks .ed-check { font-size: calc(13.5px * var(--ed-fs)); }
.ed-login__status {
  min-height: 20px;
  margin: -2px 0 -4px;
}
.ed-login__status .ed-spinner { margin-top: 3px; }
.ed-login__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: calc(13px * var(--ed-fs));
  color: var(--ed-text-3);
  text-align: center;
  animation: ed-fade-in 600ms var(--ed-ease) 200ms both;
}
.ed-login__links { display: flex; align-items: center; gap: 10px; }
.ed-login__links .ed-dot { color: var(--ed-text-4); }
/* Raid Night's countdown and the Discord link (2026-11-12, marketing/live -
 * LoginScene._buildLiveRow). */
/* What's new (round 2 part 25k1 - LoginScene._buildNewsLine): one sentence,
 * first under the card. It runs as text does: the mark, the words and "Read
 * more" share the lines and wrap together at the card's width (three flex
 * items stacked into three rows, 86 px tall, when it was a flex row). */
.ed-login__news { text-align: center; line-height: 1.6; color: var(--ed-text-2); }
.ed-login__newsmark { margin-right: 8px; }
.ed-login__newsmark[hidden] { display: none; }
.ed-login__news .ed-link--btn { margin-left: 8px; }
/* The season on: its name and its days (round 2 part 16d). */
/* The island's cycle and its stage, from the server's status (round 2 part 25o1). */
.ed-login__island { font-size: calc(13.5px * var(--ed-fs)); color: var(--ed-text-2); text-align: center; }
.ed-login__island[hidden] { display: none; }
.ed-login__season { font-size: calc(13px * var(--ed-fs)); color: var(--ed-gold-300); text-align: center; }
.ed-login__season[hidden] { display: none; }
.ed-login__live { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.ed-login__live .ed-dot { color: var(--ed-text-4); }
/* The wishlist line (2026-11-20 - data/Wishlist.js): the game's own page only. */
.ed-login__wishlist { display: flex; justify-content: center; margin-top: 2px; }
.ed-login__raid { font-weight: 600; color: var(--ed-ember-300); }

@media (max-width: 560px) {
  .ed-logo__name { font-size: 44px; }
  .ed-logo__into { font-size: 13px; }
  .ed-login__card { padding: 22px 20px 20px; }
}
@media (max-height: 760px) {
  .ed-login__stack { gap: 20px; }
  .ed-login .ed-logo__name { font-size: 48px; }
}
/* The card is taller since the Email box (2026-11-03): in a window under
 * 900 px the card's own spacing tightens too, so Sign in stays on screen. */
@media (max-height: 900px) {
  .ed-login__stack { gap: 18px; }
  .ed-login__card { gap: 12px; padding: 20px 26px 20px; }
  .ed-login__checks { gap: 6px; padding: 9px 12px; }
}

/* ---- The in-game sign-in prompt (MultiplayerPresence.showConnectPrompt) ---- */
.ed-connect { width: min(400px, calc(var(--ed-vw, 100vw) - 32px)); }
.ed-connect .ed-modal__body { display: flex; flex-direction: column; gap: 14px; }
.ed-connect__lede { margin: 0; font-size: calc(15px * var(--ed-fs)); line-height: 1.5; color: var(--ed-text-2); }
.ed-connect .ed-error { margin-top: -8px; }

/* ---- Email and Forgot password (2026-11-03 - LoginScene's steps) ---------- */
/* A button that reads as a link (.ed-link's look, a button's reset). */
.ed-link--btn {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  font: inherit;
  font-size: calc(13px * var(--ed-fs));
}
.ed-link--btn:disabled { opacity: 0.5; cursor: default; }
.ed-login__forgot { align-self: flex-end; margin: -10px 0 -4px; }
.ed-login__ways {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: -4px;
}
.ed-login__ways .ed-dot { color: var(--ed-text-4); }

/* THE FRAME REFUSAL (2026-11-12, services/FrameGuard.js rule 1): what a frame
 * the game does not trust shows instead of the game - one line and the way
 * out to the site. Centred by .ed-screen's auto margins. */
.ed-frame-refusal { gap: 22px; text-align: center; }
.ed-frame-refusal__line {
  max-width: 26em;
  margin: 0;
  color: var(--ed-text);
  font-size: calc(19px * var(--ed-fs));
  line-height: 1.45;
}
.ed-frame-refusal .ed-btn { text-decoration: none; }

/* ---- Update emails (2026-11-12 - LoginScene's one-time question) ---------- */
/* Yes and No side by side, the same size: neither is the default. */
.ed-login__choices { display: flex; gap: 10px; }
.ed-login__choices > .ed-btn { flex: 1 1 0; min-width: 0; }

/* PLAY NOW (2026-11-12, the guest start - LoginScene's Play now card): the
 * line on how long a guest is kept, under the button. The card itself is a
 * sign-in card's; the one not shown is [hidden]. */
.ed-login__card[hidden] { display: none; }
.ed-login__kept {
  margin: -4px 0 0;
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-text-3);
  text-align: center;
}
