/* Shared by the landing page and the sign-in page: the deep teal brand surface, and the one-motion change between the two pages
   (cross-document view transitions; browsers without them change page as usual). The teal surface (.brand-bg) morphs from the
   landing hero into the sign-in page's left panel, the white logo stays where it is, everything else cross-fades. */

@view-transition { navigation: auto; }

.brand-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; view-transition-name: brand-surface;
  background: radial-gradient(900px 560px at 92% -6%, rgba(40, 169, 158, .42) 0%, rgba(40, 169, 158, 0) 62%),
              linear-gradient(168deg, #0F5E57 0%, #0B4A45 52%, #073531 100%); }
.brand-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 52px 52px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%); }
.brand-logo { view-transition-name: brand-logo; }

::view-transition-group(brand-surface), ::view-transition-group(brand-logo) { animation-duration: .55s; animation-timing-function: cubic-bezier(.22, .8, .2, 1); }
::view-transition-old(brand-surface), ::view-transition-new(brand-surface) { height: 100%; width: 100%; object-fit: cover; animation: none; }
::view-transition-old(root) { animation: .22s ease-in both brand-fade-out; }
::view-transition-new(root) { animation: .42s cubic-bezier(.22, .8, .2, 1) .12s both brand-fade-in; }
@keyframes brand-fade-out { to { opacity: 0; } }
@keyframes brand-fade-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* the sign-in page's left panel on the shared surface */
.auth-brand { isolation: isolate; }
.auth-brand > :not(.brand-bg) { position: relative; z-index: 1; }
.auth-brand .logo-link { align-self: flex-start; display: block; line-height: 0; border-radius: 6px; }
.auth-brand .logo-link:focus-visible { outline: 2px solid #C4A568; outline-offset: 4px; }
.auth-brand .logo { height: 24px; width: auto; }
