/* BioStudio AI — temporary login-design preview (macOS + Windows lock screens) */

.lp-root {
  --lp-safe-top: env(safe-area-inset-top, 0px);
  --lp-safe-right: env(safe-area-inset-right, 0px);
  --lp-safe-bottom: env(safe-area-inset-bottom, 0px);
  --lp-safe-left: env(safe-area-inset-left, 0px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #fff;
  user-select: none;
  isolation: isolate;
}

.lp-root.lp-page {
  position: fixed;
}

.lp-screen {
  position: absolute;
  inset: 0;
  display: none;
}

.lp-root[data-style="classic"] .lp-classic,
.lp-root[data-style="classic"] .lp-classic,
.lp-root[data-style="macos"] .lp-mac,
.lp-root[data-style="windows"] .lp-win {
  display: block;
}

.lp-wallpaper {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  transform: scale(1.04);
}

.lp-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.38));
}

/* —— Chooser (review chrome, not part of the OS lock) —— */
.lp-chooser {
  position: absolute;
  z-index: 30;
  top: calc(14px + var(--lp-safe-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: min(760px, calc(100% - 28px));
  max-width: calc(100% - 24px);
  box-sizing: border-box;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}

.lp-chooser-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.lp-chooser-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font: 650 10px/1.2 Manrope, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lp-chooser-hint {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font: 500 12.5px/1.35 "Segoe UI", system-ui, sans-serif;
}

.lp-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.lp-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: 600 12.5px/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.lp-switch button[aria-pressed="true"] {
  background: #fff;
  color: #111827;
}

.lp-chooser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: 650 12.5px/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lp-btn-use {
  background: #fff;
  color: #0b1220;
}

.lp-btn-use.is-chosen {
  background: #34d399;
  color: #052e1c;
}

.lp-toast {
  position: absolute;
  z-index: 40;
  left: 50%;
  bottom: calc(28px + var(--lp-safe-bottom));
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.86);
  color: #f8fafc;
  font: 500 13px/1.35 "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.lp-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— Shared sign-in column —— */
.lp-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.lp-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, calc(100% - 40px));
  max-width: 100%;
  box-sizing: border-box;
}

.lp-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.lp-avatar .brand-mark,
.lp-classic-brand .brand-mark {
  animation: none;
}

.lp-name {
  margin: 14px 0 0;
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.034em;
  color: #fff;
}

.lp-name .brand-ai {
  color: #2dd4bf;
}

.lp-tabs {
  display: flex;
  gap: 4px;
  margin: 14px 0 12px;
}

.lp-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font: 500 13px/1 system-ui, sans-serif;
}

.lp-tab[aria-pressed="true"] {
  color: #fff;
}

.lp-field {
  width: 100%;
  margin: 0 0 8px;
}

.lp-field[hidden],
.lp-error[hidden],
.lp-info[hidden] {
  display: none !important;
}

.lp-field input {
  width: 100%;
  box-sizing: border-box;
  outline: none;
  color: #fff;
  font: 400 15px/1.2 system-ui, sans-serif;
}

.lp-field input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.lp-error,
.lp-info {
  width: 100%;
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
}

.lp-error { color: #fecaca; }
.lp-info { color: #bfdbfe; }

.lp-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: 500 12.5px/1.4 system-ui, sans-serif;
  text-decoration: none;
}

.lp-link:hover { color: #fff; }

.lp-guest {
  margin-top: 10px;
}

/* ===================== macOS Sequoia-style lock ===================== */
.lp-mac .lp-wallpaper {
  background:
    radial-gradient(1200px 820px at 78% 8%, rgba(255, 160, 120, 0.55), transparent 58%),
    radial-gradient(1000px 760px at 18% 22%, rgba(255, 110, 170, 0.5), transparent 60%),
    radial-gradient(1100px 900px at 50% 100%, rgba(70, 120, 255, 0.6), transparent 62%),
    linear-gradient(160deg, #5a2a8f, #7b3fb0 30%, #c0517f 60%, #ff8a6a);
}

.lp-mac-clock {
  margin-top: clamp(92px, 16vh, 150px);
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  text-align: center;
  text-shadow:
    0 2px 12px rgba(20, 8, 30, 0.45),
    0 8px 28px rgba(20, 8, 30, 0.35);
  position: relative;
  z-index: 5;
  flex: none;
}

.lp-mac-time {
  font: 200 clamp(48px, min(11vw, 12vh), 92px)/0.95 -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.04em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lp-mac-date {
  margin-top: 4px;
  font: 500 clamp(15px, 2.2vw, 22px)/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lp-mac-user {
  margin-top: auto;
  margin-bottom: clamp(24px, 6vh, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, calc(100% - 32px));
  max-width: 100%;
  box-sizing: border-box;
}

.lp-mac .lp-avatar {
  width: 108px;
  height: 108px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 36px rgba(20, 8, 30, 0.28);
  backdrop-filter: blur(18px);
}

.lp-mac .lp-name {
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.034em;
  color: #fff;
}

.lp-mac .lp-tabs {
  margin: 10px 0 12px;
}

.lp-mac .lp-tab {
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  padding: 4px 8px;
}

.lp-mac .lp-tab[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lp-mac .lp-field input {
  height: 34px;
  padding: 0 14px;
  border: 0.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  text-align: center;
  font: 400 13.5px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.lp-mac .lp-field input:focus {
  background: rgba(255, 255, 255, 0.3);
}

.lp-mac .lp-form {
  width: min(240px, 100%);
}

.lp-mac-passwrap {
  position: relative;
  width: 100%;
}

.lp-mac-passwrap input {
  padding-right: 36px;
}

.lp-mac-go {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lp-mac-go:hover { background: rgba(255, 255, 255, 0.42); }

.lp-mac-go svg {
  width: 12px;
  height: 12px;
}

.lp-mac .lp-guest,
.lp-mac .lp-forgot {
  color: rgba(255, 255, 255, 0.78);
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* ===================== Windows 11 lock + sign-in ===================== */
.lp-win .lp-wallpaper {
  background:
    radial-gradient(1100px 760px at 72% 18%, rgba(120, 170, 255, 0.55), transparent 60%),
    radial-gradient(900px 700px at 24% 88%, rgba(170, 110, 255, 0.5), transparent 62%),
    radial-gradient(700px 600px at 50% 50%, rgba(80, 200, 255, 0.25), transparent 60%),
    linear-gradient(140deg, #0a1a45, #143084 48%, #2f6bff);
  filter: blur(28px) saturate(1.15) brightness(0.72);
  transform: scale(1.12);
}

.lp-win .lp-vignette {
  background: rgba(12, 18, 32, 0.28);
}

.lp-win-lock,
.lp-win-signin {
  position: absolute;
  inset: 0;
}

.lp-win-signin {
  display: block;
}

.lp-win-clock {
  position: absolute;
  left: max(20px, calc(16px + var(--lp-safe-left)));
  bottom: max(16px, calc(12px + var(--lp-safe-bottom)));
  top: auto;
  right: auto;
  max-width: min(52%, calc(100% - 160px));
  box-sizing: border-box;
  text-shadow:
    0 2px 12px rgba(0, 20, 60, 0.5),
    0 10px 30px rgba(0, 20, 60, 0.45);
  pointer-events: none;
  z-index: 8;
}

.lp-win-time {
  font: 300 clamp(36px, min(10vw, 11vh), 96px)/0.9 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.04em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lp-win-date {
  margin-top: 6px;
  font: 400 clamp(13px, min(2vw, 2.6vh), 22px)/1.2 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.lp-win-lock-hint {
  position: absolute;
  left: 50%;
  bottom: calc(28px + var(--lp-safe-bottom));
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font: 400 13px/1 "Segoe UI", system-ui, sans-serif;
}

.lp-win-blur {
  inset: -12%;
  filter: blur(32px) saturate(1.2);
  transform: scale(1.14);
}

.lp-win-signin .lp-vignette {
  background: rgba(8, 16, 32, 0.42);
  backdrop-filter: blur(22px);
}

.lp-win-user {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(320px, calc(100% - 32px));
  max-width: 100%;
  box-sizing: border-box;
  padding-bottom: 120px;
}

.lp-win .lp-avatar {
  width: 124px;
  height: 124px;
  background: rgba(12, 22, 44, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(0, 12, 40, 0.4);
}

.lp-win .lp-name {
  font-family: Manrope, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.034em;
  color: #fff;
}

.lp-win .lp-tabs {
  margin: 8px 0 14px;
}

.lp-win .lp-tab {
  font: 400 13px/1 "Segoe UI", system-ui, sans-serif;
  padding: 6px 10px;
  border-radius: 4px;
}

.lp-win .lp-tab[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.lp-win .lp-form {
  width: min(292px, 100%);
}

.lp-win-passwrap {
  position: relative;
  width: 100%;
}

.lp-win .lp-field input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  text-align: left;
  font: 400 14px/1 "Segoe UI", system-ui, sans-serif;
}

.lp-win .lp-win-passwrap input {
  padding-right: 42px;
}

.lp-win .lp-field input:focus {
  border-color: transparent;
  box-shadow: inset 0 -2px 0 #60cdff;
}

.lp-win-go {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lp-win-go:hover { background: rgba(255, 255, 255, 0.08); }

.lp-win-go svg {
  width: 16px;
  height: 16px;
}

.lp-win-opts {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font: 400 13px/1 "Segoe UI", system-ui, sans-serif;
}

.lp-win-tray {
  position: absolute;
  z-index: 4;
  right: calc(22px + var(--lp-safe-right));
  bottom: calc(18px + var(--lp-safe-bottom));
  display: flex;
  gap: 4px;
}

.lp-win-tray button {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: default;
  display: grid;
  place-items: center;
}

.lp-win-tray button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lp-win-tray svg {
  width: 18px;
  height: 18px;
}

/* —— Classic (current BioStudio card) —— */
.lp-classic .lp-wallpaper {
  background: linear-gradient(145deg, #0a1628 0%, #1a2d4a 40%, #0d2137 100%);
}

.lp-classic .lp-stage {
  justify-content: center;
  padding: 108px 20px 32px;
  box-sizing: border-box;
}

.lp-classic-card {
  width: min(420px, 92vw);
  margin: 0 auto;
  flex: none;
  position: relative;
  z-index: 3;
  padding: 2.5rem 2rem 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  color: #e8edf5;
}

.lp-classic-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.lp-classic-tagline {
  margin: 0 0 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.lp-classic .lp-tabs {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 4px;
  width: 100%;
}

.lp-classic .lp-tab {
  flex: 1;
  padding: 0.55rem;
  border-radius: 8px;
}

.lp-classic .lp-tab[aria-pressed="true"] {
  background: rgba(47, 107, 255, 0.35);
  color: #fff;
  text-decoration: none;
}

.lp-classic .lp-form {
  width: 100%;
  align-items: stretch;
}

.lp-classic .lp-field label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.35rem;
}

.lp-classic .lp-field input {
  height: auto;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  text-align: left;
}

.lp-classic-submit {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 8px;
  background: #2f6bff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.lp-classic-submit:hover {
  background: #2558d4;
}

.lp-classic-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.1rem 0 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

.lp-classic-or::before,
.lp-classic-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.lp-classic-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.lp-classic-go {
  display: none !important;
}

.lp-classic-passwrap {
  position: relative;
  width: 100%;
}

.lp-classic .lp-forgot {
  width: 100%;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  font-size: 0.85rem;
}

.lp-classic .lp-guest {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
}

@media (max-width: 720px) {
  .lp-chooser {
    top: calc(8px + var(--lp-safe-top));
    border-radius: 14px;
    padding: 8px 10px;
    width: min(760px, calc(100% - 24px));
    max-width: calc(100% - 24px);
  }

  .lp-mac-clock { margin-top: 86px; }
  .lp-mac-time { font-size: clamp(36px, 12vw, 56px); }
  .lp-mac-date { font-size: 16px; }

  .lp-win-clock {
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 148px);
  }

  .lp-win-user {
    padding-bottom: 100px;
  }
}

.window[data-app="login-preview"] .window-body {
  overflow: hidden;
  padding: 0;
  background: #05070e;
}

.window[data-app="login-preview"] .lp-win-clock {
  position: absolute;
  left: 20px;
  bottom: 16px;
  max-width: calc(100% - 148px);
  z-index: 8;
}

@media (prefers-reduced-motion: reduce) {
  .lp-toast { transition: none; }
  .lp-root .brand-mark { animation: none; }
  .login-corner-logo { animation: none; }
}
