/* Sign-in / invite pages (_AuthLayout). Loads AFTER varya-style.css and
   apple.css and refines the .login-hero / .btn-signin rules there (same
   specificity, later wins). Minimal on purpose: the Varya teal, one accent,
   flat shapes, hairlines, no glows or 3D effects. Motion is transform and
   opacity only; choreography lives in login-motion.js. */

.login-split {
  --lp-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --lp-mint: #7ff5e6;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Left banner ----------
   The original teal gradient and faint dot grid, with a slow animated
   gradient field moving through it, and one statement anchored bottom-left. */
.login-hero__aurora {
  position: absolute;
  /* 200% of the panel, centred: when it rotates its corners never pull in
     far enough to leave an edge of the panel uncovered. */
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  will-change: transform;
}
.login-hero__aurora--a {
  background:
    radial-gradient(28% 22% at 38% 40%, rgba(0, 150, 146, 0.55), rgba(0, 150, 146, 0) 100%),
    radial-gradient(24% 20% at 62% 58%, rgba(0, 118, 122, 0.6), rgba(0, 118, 122, 0) 100%),
    radial-gradient(18% 14% at 52% 30%, rgba(127, 245, 230, 0.14), rgba(127, 245, 230, 0) 100%);
  animation: lp-orbit 90s linear infinite;
}
.login-hero__aurora--b {
  background:
    radial-gradient(26% 20% at 60% 36%, rgba(0, 92, 96, 0.7), rgba(0, 92, 96, 0) 100%),
    radial-gradient(22% 18% at 40% 62%, rgba(0, 165, 156, 0.4), rgba(0, 165, 156, 0) 100%),
    radial-gradient(16% 12% at 47% 50%, rgba(127, 245, 230, 0.1), rgba(127, 245, 230, 0) 100%);
  animation: lp-orbit 130s linear infinite reverse;
}
@keyframes lp-orbit { to { transform: rotate(360deg); } }

.login-hero__stage {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem;
}

.login-hero__title {
  margin: 0;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.login-hero__line {
  display: block;
}
.login-hero__line--accent {
  color: var(--lp-mint);
}

/* ---------- Sign-in button ----------
   A flat brand-teal pill. Hover lightens it, press settles it, and the arrow
   gives way to a spinner while signing in. Nothing else. */
.btn-signin {
  transition: transform 300ms var(--lp-ease), background-color 250ms var(--lp-ease),
    border-color 250ms var(--lp-ease), opacity 250ms var(--lp-ease);
}
.btn-signin:active:not(:disabled) {
  transform: scale(0.98);
  transition-duration: 100ms;
}

.btn-signin--island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem 0.75rem 1.5rem;
}
.btn-signin__island {
  position: relative;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;
}
.btn-signin__arrow,
.btn-signin__spinner {
  grid-area: 1 / 1;
  transition: transform 300ms var(--lp-ease), opacity 250ms var(--lp-ease);
}
.btn-signin:hover:not(:disabled) .btn-signin__arrow {
  transform: translateX(3px);
}

.btn-signin__spinner {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  opacity: 0;
}
.btn-signin[aria-busy="true"] .btn-signin__arrow {
  opacity: 0;
}
.btn-signin[aria-busy="true"] .btn-signin__spinner {
  opacity: 1;
  animation: lp-spin 0.8s linear infinite;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ---------- Sign-in UX details ---------- */
.caps-hint {
  margin-top: 0.4rem;
  color: #b45309;
  font-weight: 500;
}
.caps-hint[hidden] { display: none; }

/* Keyboard focus: a clear two-ring halo that works on the white panel. */
.btn-signin:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #00585b;
}

@media (prefers-reduced-motion: reduce) {
  .btn-signin:hover:not(:disabled) .btn-signin__arrow { transform: none; }
  .btn-signin[aria-busy="true"] .btn-signin__spinner { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero__aurora { animation: none; }
}
