/* ===========================================================================
   The welcome screen, from the Command panel.
   ---------------------------------------------------------------------------
   Lifted from felicet-super-admin-panel/src/styles/apple.css (the .wg2 block)
   with the class names kept, so the two are recognisably the same screen: a
   clean white field, a slow colour wash behind it, the first name written
   large in a gradient, and one round arrow to go on.

   Two differences from Command, both deliberate:

   - Command also has a "What's your name?" step, because a super admin created
     from a phone number starts without one. Tracker accounts are created by an
     administrator with a name already filled in, so there is nothing to ask.
   - Command leaves the aura static (`.wg2-aura i { animation: none }`). Here
     it drifts, which is what the keyframes were written for, with a
     reduced-motion guard so it stops for anyone who asks the OS to stop it.
   =========================================================================== */

.wg2 {
  position: fixed; inset: 0; z-index: 3000; overflow: hidden;
  background: #FBFBFD;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom, 0px));
}

.wg2-aura { position: absolute; inset: -30%; filter: blur(90px); opacity: .55; pointer-events: none; }
.wg2-aura i { position: absolute; border-radius: 50%; }
.wg2-aura i:nth-child(1) { width: 40vw; height: 40vw; left: 12%; top: 18%; background: #6EE7B7; animation: wg2-float 16s ease-in-out infinite alternate; }
.wg2-aura i:nth-child(2) { width: 36vw; height: 36vw; right: 10%; top: 12%; background: #93C5FD; animation: wg2-float 20s ease-in-out infinite alternate-reverse; }
.wg2-aura i:nth-child(3) { width: 30vw; height: 30vw; left: 40%; bottom: 8%; background: #C4B5FD; opacity: .7; animation: wg2-float 24s ease-in-out infinite alternate; }
.wg2-aura i:nth-child(4) { width: 26vw; height: 26vw; right: 26%; bottom: 20%; background: #FDE68A; opacity: .6; animation: wg2-float 19s ease-in-out infinite alternate-reverse; }

.wg2-inner {
  position: relative; z-index: 1; width: 100%; max-width: 760px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.wg2-brand {
  position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 1;
  font-size: 12px; letter-spacing: .4px; color: #86868B;
}

.wg2-hello { cursor: default; outline: 0; }
.wg2-greet {
  font-size: clamp(22px, 3vw, 30px); font-weight: 500; color: #6E6E73; letter-spacing: -.3px;
  animation: wg2-rise .8s .1s both cubic-bezier(.2, .9, .3, 1);
}
.wg2-big { margin: 4px 0 0; font-size: clamp(64px, 11vw, 132px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.wg2-big span {
  display: inline-block; padding: 0 .06em .08em;
  background: linear-gradient(100deg, #059669 0%, #10B981 30%, #0EA5E9 62%, #6366F1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wg2-write 1.4s .35s both cubic-bezier(.65, 0, .35, 1);
}
.wg2-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 22px; font-size: 14px; color: #6E6E73;
  animation: wg2-rise .8s 1.4s both cubic-bezier(.2, .9, .3, 1);
}
.wg2-go {
  position: relative; z-index: 1; margin-top: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: wg2-rise .8s 1.7s both cubic-bezier(.2, .9, .3, 1);
}
.wg2-go span { font-size: 13px; color: #6E6E73; }

.wg2-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: #1D1D1F; color: #fff;
  transition: transform .15s, background .2s, opacity .2s;
}
.wg2-arrow.big { width: 64px; height: 64px; font-size: 24px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.wg2-arrow:hover:not(:disabled) { transform: scale(1.06); }
.wg2-arrow:active:not(:disabled) { transform: scale(.96); }
.wg2-arrow:disabled { background: #D2D2D7; cursor: default; }

/* Command's role pill, in the tracker's accent. */
.wg-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: rgba(16, 185, 129, .14); color: #047857;
}

@keyframes wg2-float { to { transform: translate(5vw, -5vh) scale(1.12); } }
@keyframes wg2-write { from { clip-path: inset(0 100% 0 0); filter: blur(6px); } 60% { filter: blur(0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wg2-rise { from { opacity: 0; transform: translateY(14px); } }

/* Everything here is decoration. Someone who has asked their OS to stop
   animations gets the finished screen immediately, not a slower version of
   the same show. */
@media (prefers-reduced-motion: reduce) {
  .wg2-aura i,
  .wg2-greet, .wg2-big span, .wg2-meta, .wg2-go { animation: none; }
}
