/* Intra login page, ported from the Auxo Builder sign-in screen
   (auxo-dev/apps/frontend/src/pages/LoginPage.css, Oct 2026) without the field
   of drifting Auxo marks. Brand photo framed on the left, a glass sign-in card
   on the right. Everything is scoped under .login-screen so the palette and the
   two typefaces stay on this page. Light only, like the rest of Intra. */

html, body { margin: 0; height: 100%; }

.login-screen {
  --lp-bg: #F5EFE6;
  --lp-border: rgba(40, 28, 12, 0.10);
  --lp-ink: #1F1A14;
  --lp-ink3: #6E6357;
  --lp-danger: #A44A35;
  --lp-danger-soft: #F0DBD2;
  --lp-card: rgba(255, 253, 249, 0.62);
  --lp-card-border: rgba(255, 255, 255, 0.7);
  --lp-purple: #6366f1;
  --lp-purple-2: #8b5cf6;
  --lp-purple-glow: rgba(99, 102, 241, 0.28);
  --lp-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --lp-font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;

  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font: 15px/1.5 var(--lp-font-sans);
  -webkit-font-smoothing: antialiased;
}
.login-screen *, .login-screen *::before, .login-screen *::after { box-sizing: border-box; }

/* Two soft purple blooms that wander slowly behind everything, so the page is
   never quite still. */
.login-screen::before,
.login-screen::after {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  will-change: transform;
}
.login-screen::before {
  top: -260px;
  right: -200px;
  background: radial-gradient(circle, var(--lp-purple) 0%, transparent 70%);
  opacity: 0.26;
  animation: lp-wander-a 34s ease-in-out infinite alternate;
}
.login-screen::after {
  bottom: -300px;
  right: 18%;
  background: radial-gradient(circle, var(--lp-purple-2) 0%, transparent 70%);
  opacity: 0.2;
  animation: lp-wander-b 42s ease-in-out infinite alternate;
}
@keyframes lp-wander-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-180px, 140px) scale(1.15); }
}
@keyframes lp-wander-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(160px, -170px) scale(0.95); }
}
.login-screen .lp-hero,
.login-screen .lp-pane {
  position: relative;
  z-index: 1;
}

/* Brand photo framed as a rounded card on the left; hidden below 900px,
   where the sign-in card stands alone. */
.login-screen .lp-hero {
  display: none;
  flex: 1 1 50%;
  min-width: 0;
  padding: 20px 0 20px 20px;
}
@media (min-width: 900px) {
  .login-screen .lp-hero { display: block; }
}
.login-screen .lp-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--lp-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 24px 80px var(--lp-purple-glow);
}
/* The photo drifts: a slow push in and back. */
.login-screen .lp-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 35%;
  animation: lp-drift 48s ease-in-out infinite alternate;
}
@keyframes lp-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}
.login-screen .lp-pane {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.login-screen .lp-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  padding: 48px 40px 40px;
  border-radius: 28px;
  border: 1px solid var(--lp-card-border);
  background: var(--lp-card);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 24px 70px rgba(40, 28, 12, 0.10), 0 40px 120px var(--lp-purple-glow);
}
@media (max-width: 480px) {
  .login-screen .lp-card { padding: 40px 24px 28px; }
}
.login-screen .lp-card > * {
  animation: lp-rise 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.login-screen .lp-card > *:nth-child(2) { animation-delay: 70ms; }
.login-screen .lp-card > *:nth-child(3) { animation-delay: 140ms; }
.login-screen .lp-card > *:nth-child(4) { animation-delay: 210ms; }
.login-screen .lp-card > *:nth-child(5) { animation-delay: 280ms; }
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
/* The Auxo mark on the purple tile. */
.login-screen .lp-tile {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--lp-purple-2), var(--lp-purple));
  box-shadow: 0 10px 30px var(--lp-purple-glow);
}
.login-screen .lp-title {
  margin: 22px 0 30px;
  text-align: center;
  font-family: var(--lp-font-serif);
  font-size: 40px;
  line-height: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
}
.login-screen .lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  font: 500 15px/1 var(--lp-font-sans);
  letter-spacing: 0.2px;
  padding: 0 20px;
  height: 54px;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  background: linear-gradient(135deg, var(--lp-purple), var(--lp-purple-2));
  color: #ffffff;
  box-shadow: 0 8px 28px var(--lp-purple-glow);
}
.login-screen .lp-btn:hover,
.login-screen .lp-btn:focus { color: #ffffff; text-decoration: none; }
.login-screen .lp-btn:hover { opacity: 0.94; transform: translateY(-1px); box-shadow: 0 12px 34px var(--lp-purple-glow); }
.login-screen .lp-btn.is-busy { opacity: 0.5; cursor: default; pointer-events: none; }
.login-screen .lp-btn:focus-visible { outline: 2px solid var(--lp-purple); outline-offset: 3px; }
.login-screen .lp-ms { flex: none; width: 18px; height: 18px; }
.login-screen .lp-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lp-danger-soft);
  color: var(--lp-danger);
  font-size: 13px;
}

/* The account that last signed in on this browser. */
.login-screen .lp-account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  background: rgba(127, 110, 85, 0.07);
}
.login-screen .lp-account[hidden] { display: none; }
.login-screen .lp-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--lp-purple), var(--lp-purple-2));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.login-screen .lp-account-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.login-screen .lp-account-name {
  font-weight: 500;
  color: var(--lp-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-screen .lp-account-mail {
  font-size: 13px;
  color: var(--lp-ink3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-screen .lp-forget {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lp-ink3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.login-screen .lp-forget:hover { background: var(--lp-border); color: var(--lp-ink); }
.login-screen .lp-forget:focus-visible { outline: 2px solid var(--lp-purple); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .login-screen::before,
  .login-screen::after,
  .login-screen .lp-frame img,
  .login-screen .lp-card > * { animation: none; }
}
