/* Shared client sign-in / first-password screens. Desktop split is unchanged. */
html.ge-signin {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
html.ge-signin,
body.ge-signin {
  margin: 0;
  min-height: 100%;
  background: #050b14;
  color: #f4ead4;
  font-family: Inter, system-ui, sans-serif;
}
body.ge-signin * { box-sizing: border-box; }
body.ge-signin .shell {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
}
body.ge-signin .pane {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  padding: 56px 64px;
}
body.ge-signin .stage {
  position: relative;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(196,163,90,.14), transparent 55%),
    url("/client/assets/media/images/2600x1600/bg-1-dark.png") center / cover no-repeat,
    #07111f;
}
body.ge-signin .stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5,11,20,.15), rgba(5,11,20,.72));
  pointer-events: none;
}
body.ge-signin .stage-inner { position: relative; z-index: 1; width: 100%; max-width: 460px; }
body.ge-signin .copy { background: radial-gradient(720px 380px at 0% 0%, rgba(196,163,90,.12), transparent 58%), #050b14; }
body.ge-signin .copy-inner { width: 100%; max-width: 420px; margin: 0 auto; }
body.ge-signin .mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  letter-spacing: .04em;
  color: #f4e7c5;
  font-weight: 600;
}
body.ge-signin .mark small {
  display: block;
  margin-top: 7px;
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(232,213,163,.62);
}
body.ge-signin .rule {
  width: 48px;
  height: 1px;
  margin: 32px 0 24px;
  background: linear-gradient(90deg, #c4a35a, transparent);
}
body.ge-signin h1 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 4.6vw, 56px);
  font-weight: 500;
  font-style: italic;
  line-height: .95;
  color: #fff;
}
body.ge-signin .lead {
  margin: 0 0 28px;
  color: rgba(244,234,212,.62);
  font-size: 15px;
  line-height: 1.55;
}
body.ge-signin label {
  display: block;
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(232,213,163,.7);
}
body.ge-signin .field { margin-bottom: 18px; }
body.ge-signin .wrap { position: relative; }
body.ge-signin input[type="email"],
body.ge-signin input[type="password"],
body.ge-signin input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(196,163,90,.28);
  border-radius: 2px;
  background: rgba(255,255,255,.03);
  color: #fff;
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
body.ge-signin input[type="password"],
body.ge-signin input[name="password"],
body.ge-signin input[name="password2"] { padding-right: 48px; }
body.ge-signin input:focus { border-color: #c4a35a; box-shadow: 0 0 0 3px rgba(196,163,90,.16); }
body.ge-signin input:focus-visible { border-color: #c4a35a; }
body.ge-signin .eye {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #e8d5a3;
  cursor: pointer;
  border-radius: 2px;
  display: grid;
  place-items: center;
  touch-action: manipulation;
}
body.ge-signin .eye svg,
body.ge-signin .eye .ge-ico {
  width: 18px;
  height: 18px;
  display: block;
}
body.ge-signin .eye:focus-visible { outline: 2px solid #c4a35a; outline-offset: 2px; }
body.ge-signin .err {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 2px;
  background: rgba(185,28,28,.16);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}
body.ge-signin .note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 2px;
  background: rgba(196,163,90,.14);
  color: #f4ead4;
  font-size: 13px;
  line-height: 1.45;
}
body.ge-signin .hint {
  margin: 0 0 18px;
  color: rgba(244,234,212,.45);
  font-size: 13px;
  line-height: 1.45;
}
body.ge-signin .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 1px solid #d4b56a;
  border-radius: 2px;
  cursor: pointer;
  background: linear-gradient(180deg, #ead7a6 0%, #c4a35a 100%);
  color: #07111f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(196,163,90,.18);
  touch-action: manipulation;
  transition: background 180ms ease, transform 160ms ease, opacity 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  body.ge-signin .btn:hover { background: linear-gradient(180deg, #f4e7c5 0%, #d4b56a 100%); }
}
body.ge-signin .btn:active { transform: translateY(1px); }
body.ge-signin .btn:focus-visible { outline: 2px solid #f4e7c5; outline-offset: 3px; }
body.ge-signin .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
body.ge-signin .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: rgba(244,234,212,.45);
  font-size: 13px;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  body.ge-signin .back:hover { color: #e8d5a3; }
}
body.ge-signin .back:focus-visible { color: #e8d5a3; }
body.ge-signin .whisper {
  margin: 32px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
}

@media (max-width: 900px) {
  body.ge-signin .shell {
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.ge-signin .pane {
    flex: 0 0 auto;
    align-items: stretch;
    padding:
      max(28px, env(safe-area-inset-top, 0px))
      max(20px, env(safe-area-inset-right, 0px))
      max(28px, env(safe-area-inset-bottom, 0px))
      max(20px, env(safe-area-inset-left, 0px));
  }
  body.ge-signin .copy {
    flex: 1 1 auto;
  }
  body.ge-signin .copy-inner { max-width: 440px; margin: 0; }
  body.ge-signin .stage {
    display: none;
  }
  body.ge-signin h1 { font-size: clamp(36px, 11vw, 44px); }
  body.ge-signin .rule { margin: 22px 0 18px; }
  body.ge-signin .lead { margin-bottom: 22px; font-size: 15px; }
  body.ge-signin input[type="email"],
  body.ge-signin input[type="password"],
  body.ge-signin input[type="text"] {
    height: 48px;
    font-size: 16px;
  }
  body.ge-signin .btn {
    height: 48px;
    margin-top: 12px;
  }
  body.ge-signin .field { margin-bottom: 16px; }
}

@media (max-width: 900px) and (max-height: 520px) {
  body.ge-signin .pane.copy {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  body.ge-signin h1 { font-size: 32px; }
  body.ge-signin .rule { margin: 14px 0 12px; }
  body.ge-signin .lead { margin-bottom: 14px; }
}

@media (max-width: 360px) {
  body.ge-signin .pane.copy {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ge-signin .btn:active { transform: none; }
  body.ge-signin .btn,
  body.ge-signin .eye {
    transition: none;
  }
}
