/* ============================================================================
   AURORA login — soft white minimalist composition
   The supplied transparent AURORA wordmark is the hero title. The previous
   flip-board lettering remains available in source history but is intentionally
   not mounted on the login screen.
   ========================================================================== */

.login-page {
  --login-ink: #172033;
  --login-muted: #718096;
  --login-line: rgba(148, 163, 184, 0.24);
  --login-primary: #c9a227;
  --login-card: rgba(255, 255, 255, 0);
  --login-card-strong: rgba(255, 255, 255, 0);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 82% 18%, rgba(222, 228, 255, 0.36), transparent 68%),
    radial-gradient(70% 65% at 10% 86%, rgba(236, 231, 255, 0.26), transparent 72%),
    linear-gradient(135deg, #ffffff 0%, #f9fafc 46%, #f4f6fb 100%);
  color: var(--login-ink);
}

/* 360-degree ambient overlay: a low-opacity, full-viewport pearl veil that
   keeps every direction of the scene softly connected without a dark vignette. */
.login-page::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(255, 255, 255, 0.18), transparent 72%),
    conic-gradient(from 0deg at 50% 50%, rgba(205, 214, 255, 0.11), rgba(255, 255, 255, 0.025), rgba(226, 218, 255, 0.09), rgba(255, 255, 255, 0.025), rgba(205, 214, 255, 0.11));
  filter: blur(24px);
  opacity: 0.68;
  mix-blend-mode: soft-light;
  transform: scale(1.08);
  animation: loginAmbientTurn 28s linear infinite;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.20) 48%, rgba(244, 246, 251, 0.54));
  mix-blend-mode: screen;
}

@keyframes loginAmbientTurn {
  from { transform: scale(1.08) rotate(0deg); }
  to { transform: scale(1.08) rotate(360deg); }
}

.login-page .aurora-bg {
  opacity: 0.32;
  mix-blend-mode: multiply;
}

.login-page .aurora-canvas {
  opacity: 0.22;
  filter: grayscale(0.45) saturate(0.42) contrast(0.84);
}

.login-page .aurora-bg .orb {
  opacity: 0.12;
  filter: blur(120px);
}

.login-page .atria-mark {
  position: fixed;
  width: clamp(126px, 16vw, 220px);
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 38px);
  opacity: 0.92;
  filter: brightness(0) invert(0.55) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* The card is the centred element. Anchor the wrap to the viewport centre
   directly rather than relying on the body grid to centre its row — the body
   carries several fixed children, so its implicit row does not stretch and the
   card would otherwise sit flush against the top edge. */
.login-page .login-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(392px, calc(100vw - 36px));
  /* brand-login.css sets min-height:100vh here. If that stands, the wrap spans
     the whole viewport and the title — hung off the wrap's top edge — is pushed
     off screen. The wrap must shrink to the card. */
  height: auto;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

/* The title is taken out of flow and hung above the card, so it can be as wide
   as the artwork needs without shifting the card off centre. */
.login-page .brand-hold {
  position: absolute;
  left: 50%;
  bottom: calc(100% + clamp(16px, 3.6vh, 40px));
  transform: translateX(-50%);
  width: min(760px, 88vw);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.login-page .brand-hold::before,
.login-page .brand-hold::after {
  content: none;
}

/* Supplied transparent titles. Sizing and the AURORA ⇄ ATRIA flip live in
   login-fantasy-theme.css, which loads after this file. */
.login-page .brand-title {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Email card: no fill and no edge at all — only a frost, so the panorama reads
   straight through it. */
.login-page .login-card {
  width: min(392px, 100%);
  padding: 28px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
}

.login-page .field span {
  color: #39455d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.075em;
}

/* With no card fill behind them, the fields carry their own faint edge so the
   form still reads against the panorama. */
.login-page .field input {
  background: rgba(255, 255, 255, 0.26);
  color: var(--login-ink);
  border-color: rgba(118, 132, 154, 0.30);
  border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.login-page .field input::placeholder {
  color: rgba(100, 116, 139, 0.62);
}

.login-page .field input:focus {
  border-color: rgba(201, 162, 39, 0.54);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.10), inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.login-page .btn-cosmic {
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c9a227, #c9a227);
  box-shadow: 0 10px 22px rgba(201, 162, 39, 0.20);
}

.login-page .btn-cosmic .cos-inner {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.96), rgba(201, 162, 39, 0.96));
}

.login-page .btn-cosmic .cos-label,
.login-page .btn-cosmic .cos-arrow {
  color: #ffffff;
}

.login-page .pin-overlay {
  background: rgba(31, 26, 58, 0.10);
  backdrop-filter: blur(16px) saturate(118%);
  -webkit-backdrop-filter: blur(16px) saturate(118%);
}

@media (max-width: 720px) {
  .login-page { padding: 88px 18px 40px; }
  .login-page .brand-hold { width: min(560px, 92vw); bottom: calc(100% + 14px); }
  .login-page .brand-morph { height: clamp(58px, 19vw, 124px); }
  .login-page .login-card { width: min(392px, 100%); }
}

/* Short viewports: shrink the title so it can never collide with the top edge
   while the card stays pinned to the middle. */
@media (max-height: 760px) {
  .login-page .brand-morph { height: clamp(50px, 7.5vw, 112px); }
  .login-page .brand-hold { bottom: calc(100% + 12px); }
}

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