/* The sign-in page (login.js), laid out like the reference game's: one column in the middle — the logo, "Log in",
   the big provider buttons, "Continue as guest", "or", the email way in — over the night lounge; the language (or the
   way back) at the top start, help · support · about at the top end, the terms at the bottom. Girvoo's identity:
   deep violet, the pink → violet gradient. Everything follows the page's direction. */
.lp { --grad: linear-gradient(100deg, #ff5fae, #e3268f 50%, #8b5cf6); --line: rgba(255, 255, 255, .16);
  position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; color: #fff; font-family: Cairo, Montserrat, sans-serif; background: #14061f; }
.lp::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px 420px at 50% 22%, rgba(255, 79, 163, .35), transparent 70%), linear-gradient(rgba(20, 6, 31, .55), rgba(20, 6, 31, .88)), var(--lp-bg) center / cover no-repeat; }
.lp button { font-family: inherit; }
.lp-top, .lp-col, .lp-bottom { position: relative; z-index: 1; }
/* the top bar's menus (the language list) open over the column below it, never under it */
.lp-top { z-index: 20; }

/* the top */
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(14px, 3vw, 28px); }
.lp-links { display: flex; gap: 10px; }
.lp-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); cursor: pointer; backdrop-filter: blur(6px); }
.lp-round:hover { background: rgba(255, 79, 163, .25); }
[dir="rtl"] .lp-back svg { transform: scaleX(-1); }
.lp-lang { position: relative; }
.lp-pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); }
.lp-pill i { display: grid; }
.lp-lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 170px; max-height: 60vh; overflow-y: auto; display: none; padding: 6px; border-radius: 16px; background: #22103a; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); z-index: 30; }
.lp-lang.open .lp-lang-menu { display: grid; }
.lp-lang-menu button { height: 40px; border: 0; border-radius: 10px; background: none; color: #fff; text-align: start; padding: 0 12px; font-size: 14px; cursor: pointer; }
.lp-lang-menu button.on, .lp-lang-menu button:hover { background: rgba(255, 79, 163, .18); }

/* the column */
.lp-col { flex: 1; width: min(360px, calc(100% - 32px)); margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 8px 0 24px; }
.lp-logo { display: block; width: 230px; max-width: 72%; height: auto; margin: 0 auto 10px; filter: drop-shadow(0 10px 26px rgba(255, 61, 154, .45)); }
.lp-logo-text { text-align: center; font-size: 48px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.lp-title { margin: 0 0 18px; text-align: center; font-size: 20px; font-weight: 800; }
.lp-providers { display: grid; gap: 12px; }

/* the buttons */
.lp-btn { position: relative; width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .2s, filter .2s; }
.lp-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.lp-btn > i { position: absolute; inset-inline-start: 16px; display: grid; }
.lp-btn[hidden] { display: none; }
.lp-btn.busy, .lp-btn:disabled { opacity: .7; cursor: default; transform: none; }
.lp-google { background: #fff; color: #1f1f1f; }
.lp-google-box { position: absolute; inset: 0; opacity: .01; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.lp-vk { background: #0077ff; color: #fff; }
.lp-telegram { background: #229ed9; color: #fff; }
.lp-facebook { background: #1877f2; color: #fff; }
.lp-guestbtn { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(227, 38, 143, .45); }
.lp-emailbtn { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(6px); }
.lp-emailbtn:hover { background: rgba(255, 255, 255, .16); }
.lp-or { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.lp-or::before, .lp-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* the email screens */
.lp-form { display: grid; gap: 12px; }
.lp-input { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .94); border: 2px solid transparent; }
.lp-input:focus-within { border-color: #ff4fa3; box-shadow: 0 0 0 4px rgba(255, 79, 163, .25); }
.lp-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: #1b1028; font: inherit; font-size: 15px; }
.lp-input input::placeholder { color: #8a7d99; }
.lp-eye { flex: none; border: 0; background: none; color: #8a7d99; cursor: pointer; display: grid; padding: 4px; }
.lp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.lp-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lp-check input { width: 18px; height: 18px; margin: 0; accent-color: #ff4fa3; }
.lp-submit { height: 54px; border: 0; border-radius: 16px; background: var(--grad); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px rgba(227, 38, 143, .45); margin-top: 4px; }
.lp-submit:disabled { opacity: .7; cursor: default; }
.lp-textlink { border: 0; background: none; color: #ffd0ea; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.lp-textlink:hover { color: #fff; }
.lp-form > .lp-textlink { justify-self: center; }
.lp-switch { margin: 16px 0 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .8); }
.lp-note { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14px; line-height: 1.6; text-align: center; }
.lp-err { color: #ffb3c4; font-size: 13.5px; text-align: center; margin-top: 10px; }
.lp-form .lp-err { margin-top: 0; }
.lp-err:empty { display: none; }

/* help · support · about: a window over the page */
.lp-sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(12, 4, 22, .62); backdrop-filter: blur(4px); }
.lp-sheet-box { width: min(440px, 100%); max-height: min(80vh, 640px); display: flex; flex-direction: column; border-radius: 22px; background: #22103a; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); overflow: hidden; }
.lp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--grad); }
.lp-sheet-head b { font-size: 17px; font-weight: 800; }
.lp-sheet-x { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; font-size: 15px; line-height: 1; }
.lp-sheet-body { padding: 16px 18px 20px; overflow-y: auto; color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 1.75; }
.lp-sheet-body p { margin: 0 0 10px; }
.lp-sheet-form { display: grid; gap: 10px; }
.lp-sheet-note { color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.lp-sheet-in { width: 100%; box-sizing: border-box; border: 2px solid transparent; border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .95); color: #1b1028; font: inherit; font-size: 15px; outline: none; resize: vertical; }
.lp-sheet-in:focus { border-color: #ff4fa3; }
.lp-sheet-in.bad { border-color: #ff5a6e; }

/* the bottom */
.lp-bottom { padding: 8px 16px 18px; }
.lp-terms { margin: 0 auto; max-width: 420px; text-align: center; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .7); }
.lp-terms a { color: #ffd0ea; font-weight: 700; }

/* tablets and big screens: a larger column, so the page does not look small on them */
@media (min-width: 700px) and (min-height: 900px), (min-width: 1600px) {
  .lp-col { width: min(440px, calc(100% - 48px)); }
  .lp-logo { width: 290px; }
  .lp-title { font-size: 24px; margin-bottom: 22px; }
  .lp-btn { height: 58px; font-size: 18px; border-radius: 18px; }
  .lp-providers { gap: 14px; }
  .lp-or, .lp-switch, .lp-terms { font-size: 15px; }
  .lp-terms { max-width: 520px; }
}

/* phones */
@media (max-width: 520px) {
  .lp-top { padding: 12px 14px; }
  .lp-round, .lp-pill { height: 40px; }
  .lp-round { width: 40px; }
  .lp-pill .lp-chev { display: none; }
  .lp-logo { width: 200px; }
  .lp-col { justify-content: flex-start; padding-top: 4vh; }
  .lp-terms { font-size: 12px; }
}

/* the guard's screen (js/guard.js): an extension that changes the game is on — what to switch off */
.guard-screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; background: radial-gradient(520px 420px at 50% 22%, rgba(255, 79, 163, .3), transparent 70%), #14061f; color: #fff; font-family: Cairo, Montserrat, sans-serif; overflow-y: auto; }
.guard-box { width: min(440px, 100%); padding: 26px 22px; border-radius: 22px; background: #22103a; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); text-align: center; }
.guard-ico { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.guard-box h1 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.guard-box p { margin: 0 0 12px; color: rgba(255, 255, 255, .85); line-height: 1.7; font-size: 14.5px; }
.guard-box ul { margin: 0 0 12px; padding: 12px 14px; list-style: none; border-radius: 14px; background: rgba(255, 79, 163, .12); text-align: start; }
.guard-box li { padding: 4px 0; font-weight: 700; }
.guard-box li::before { content: "⛔ "; }
.guard-how { font-size: 13.5px !important; }
.guard-box .lp-submit { width: 100%; margin-top: 6px; }

/* the support window: what it is about, and Google's "I'm not a robot" (shown once the panel has its keys) */
.lp-topic { appearance: none; -webkit-appearance: none; padding-inline-end: 38px; background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6b93' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat; background-position: right 14px center; cursor: pointer; }
[dir="rtl"] .lp-topic { background-position: left 14px center; }
.lp-captcha { display: flex; justify-content: center; min-height: 78px; }
