/* Grcly sign-in: brand story on the left, sign-in card on the right, in the logo's colours. */
.gl-page { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #121a2b; background: linear-gradient(135deg, #f4f8fe 0%, #eef3fb 45%, #f3f8f6 100%); overflow-x: hidden; position: relative; }

/* soft background: light blobs, flowing lines, glossy orbs */
.gl-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.gl-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.gl-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.gl-blob.b1 { width: 520px; height: 520px; left: -160px; bottom: -140px; background: radial-gradient(circle, #9cc2ff, transparent 70%); }
.gl-blob.b2 { width: 560px; height: 560px; right: -180px; top: 20%; background: radial-gradient(circle, #b8f0cf, transparent 70%); }
.gl-blob.b3 { width: 420px; height: 420px; left: 30%; top: -180px; background: radial-gradient(circle, #d9e7ff, transparent 70%); }
.gl-orb2 { position: absolute; top: 12%; right: 12%; width: 72px; height: 72px; border-radius: 50%; filter: blur(4px); opacity: .7;
  background: radial-gradient(circle at 35% 30%, #ffffff, #7cc8ff 45%, #3a8cf0 80%); }
.gl-orb { filter: drop-shadow(0 10px 16px rgba(30, 120, 220, .35)); }

.gl-split { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr);
  align-items: center; gap: 40px; padding: 48px clamp(24px, 6vw, 110px); box-sizing: border-box; max-width: 1500px; margin: 0 auto; }

/* desktop: exactly one screen, nothing scrolls */
@media (min-width: 981px) {
  html:has(.gl-page), .gl-page { height: 100%; overflow: hidden; }
  .gl-split { height: 100vh; height: 100dvh; min-height: 0; }
}

/* left: brand story */
.gl-hero { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: 8vh; padding-bottom: 4vh; box-sizing: border-box; min-height: 0; }
.gl-hero-logo .ga-logo { height: 56px; }
.gl-eyebrow { margin: 30px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: #3b475e; }
.gl-title { margin: 22px 0 0; font-size: clamp(34px, 3.6vw, 58px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: #0f1726; }
.gl-title span { background: linear-gradient(90deg, #0058fb 0%, #008bf2 35%, #02bebf 68%, #3ce957 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gl-lead { margin: 18px 0 0; max-width: 540px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #4a566d; }

/* big glass logo mark: upright, facing the viewer, thick translucent glass, cropped at the corner */
/* sits below the text in the column and takes the height that is left, so it never covers the text */
.gl-mark3d { position: relative; flex: 1 1 auto; min-height: 0; max-height: 480px; height: 100%; width: auto; max-width: 100%;
  aspect-ratio: 624 / 584; margin-top: 4.5vh; align-self: flex-start; perspective: 1600px; pointer-events: none; }
.gl-mark3d::after { content: ""; position: absolute; left: 12%; right: 6%; bottom: 4%; height: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 110, 220, .22), transparent); filter: blur(18px); transform: translateY(40%); }
.gl-stack { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(14deg) rotateY(-26deg) rotateZ(-3deg);
  animation: glFloat 10s ease-in-out infinite; }
.gl-stack img { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--k) * -6px));
  opacity: .32; filter: brightness(1.18) saturate(1.05) blur(.3px); }
.gl-stack img.l0 { opacity: .9; filter: brightness(1.04) saturate(1.12) drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)); transform: translateZ(0); }
.gl-stack img.l8 { opacity: .55; filter: brightness(.9) saturate(1.1); }
.gl-gloss { position: absolute; inset: 0; transform: translateZ(2px);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 60%) 0 0 / 260% 100%,
              linear-gradient(160deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%);
  -webkit-mask: url("../img/grcly-mark-xl.png") center / contain no-repeat; mask: url("../img/grcly-mark-xl.png") center / contain no-repeat;
  animation: glSheen 7s ease-in-out infinite; }
@keyframes glFloat { 0%, 100% { transform: rotateX(14deg) rotateY(-26deg) rotateZ(-3deg) translateY(0); }
                     50% { transform: rotateX(12deg) rotateY(-22deg) rotateZ(-3deg) translateY(-10px); } }
@keyframes glSheen { 0%, 15% { background-position: 130% 0, 0 0; } 60%, 100% { background-position: -40% 0, 0 0; } }

/* right: sign-in card */
.gl-side { display: flex; justify-content: center; transform: translateX(-4.5vw); }
.gl-card { width: 100%; max-width: 470px; box-sizing: border-box; padding: 46px 44px 42px; border-radius: 28px; background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 40px 80px -40px rgba(20, 60, 140, .35), 0 2px 8px rgba(20, 60, 140, .05);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.gl-logo { display: flex; justify-content: center; margin-bottom: 26px; }
.gl-card h1 { margin: 0; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: #0f1726; }
.gl-sub { margin: 8px 0 28px; text-align: center; font-size: 15px; color: #56627a; }
.gl-card .alert { border-radius: 12px; margin-bottom: 16px; }
.gl-card .field { margin-bottom: 20px; }
.gl-card .field label { display: block; margin-bottom: 9px; font-size: 14.5px; font-weight: 600; color: #121a2b; }
.gl-ico { position: relative; }
.gl-ico > svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: #5b6780; stroke-width: 1.8; pointer-events: none; z-index: 1; }
.gl-card .input { height: 54px; width: 100%; box-sizing: border-box; border-radius: 13px; border: 1.5px solid #dde4ee; background: #fff; font-family: inherit;
  font-size: 15.5px; color: #121a2b; padding: 0 16px 0 48px; box-shadow: none; }
.gl-card .input-wrap .input { padding-right: 48px; }
.gl-card .input::placeholder { color: #98a2b3; }
.gl-card .input:hover { border-color: #c4d0e0; }
.gl-card .input:focus { outline: none; border-color: #0b5ff4; box-shadow: 0 0 0 4px rgba(11, 95, 244, .12); }
.gl-card .toggle-eye { right: 10px; }
.gl-btn { height: 58px; margin-top: 10px; border-radius: 14px; border: 0; color: #fff; font-family: inherit; font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: linear-gradient(90deg, #0058fb 0%, #0a86ea 40%, #08aab6 70%, #1fb85a 100%); box-shadow: 0 18px 30px -18px rgba(0, 120, 220, .8); }
.gl-btn svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s; }
.gl-page .gl-btn:hover, .gl-page .gl-btn:focus-visible {
  color: #fff; background: linear-gradient(90deg, #0058fb 0%, #0a86ea 40%, #08aab6 70%, #1fb85a 100%); filter: brightness(1.07) saturate(1.05);
  box-shadow: 0 22px 34px -18px rgba(0, 140, 200, .85); }
.gl-page .gl-btn:active { filter: brightness(.97); }
.gl-btn:hover svg { transform: translateX(3px); }

@media (max-width: 980px) {
  .gl-split { grid-template-columns: 1fr; gap: 26px; padding: 32px 20px 40px; }
  .gl-side { transform: none; }
  .gl-hero { padding-bottom: 0; text-align: center; align-items: center; }
  .gl-hero-logo { display: none; }
  .gl-eyebrow { margin-top: 0; letter-spacing: .3em; font-size: 11.5px; }
  .gl-title { font-size: 32px; margin-top: 12px; }
  .gl-lead { font-size: 15.5px; }
  .gl-mark3d, .gl-orb2, .gl-waves .gl-orb { display: none; }
  .gl-card { padding: 34px 24px 30px; border-radius: 22px; }
}
@media (min-width: 981px) and (max-height: 620px) { .gl-mark3d { display: none; } }
@media (prefers-reduced-motion: reduce) { .gl-stack, .gl-gloss { animation: none; } }
