/* Callers: page_webapp_login / page_webapp_home (private /w/…). Desktop auth_splash look.
   API: none (static). Schema: none.
   User: « commencer un implanter le landing de connexion, modifié pour web app… logo WEB en rose… push pas en public » */
.auth-boot {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: #eee;
  background: #151020;
  background-image:
    radial-gradient(ellipse 150% 100% at 50% -20%, rgba(255, 105, 180, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 120% 90% at 100% 30%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 0% 70%, rgba(255, 20, 147, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #1a1525 0%, #151020 40%, #0f0d15 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-splash {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.auth-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.auth-splash-card {
  text-align: center;
  max-width: 480px;
  padding: 40px 36px;
  background: transparent;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.auth-splash-title {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #00d4ff 0%, #fff 35%, #ff69b4 70%, #ff1493 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-splash-logo { margin: 0 auto 22px; }
.auth-splash-logo svg { filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.3)); }
.auth-splash-subtitle {
  margin: 0;
  color: #b8e0f0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

/* Launch mark — animated wave + ring (Web Studio gate). */
.auth-splash-card--mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 420px;
  padding: 48px 40px 40px;
  animation: authSplashIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-splash-glow {
  position: absolute;
  inset: 18% 8% auto;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.24) 0%, rgba(255, 20, 147, 0.14) 45%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: authSplashPulse 3.2s ease-in-out infinite;
}
.auth-splash-mark {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
}
.auth-splash-mark-svg {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}
.auth-splash-ring {
  transform-origin: 60px 60px;
  animation: authSplashSpin 4.5s linear infinite;
}
.auth-splash-wave {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: authSplashDraw 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}
.auth-splash-wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-splash-brand {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.auth-splash-brand .wm-my { font-weight: 400; color: #fff; }
.auth-splash-brand .wm-hap { font-weight: 800; color: #00d4ff; }
.auth-splash-brand .wm-web,
.auth-splash-brand .wm-studio { margin-left: 0.28em; }
.auth-splash-product {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ff69b4;
}
.auth-splash-product .wm-studio {
  color: #fff;
  font-weight: 800;
}
.auth-splash-bar {
  position: relative;
  z-index: 1;
  width: min(220px, 70%);
  height: 3px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.auth-splash-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d4ff, #ff1493);
  animation: authSplashBar 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes authSplashIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes authSplashPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes authSplashSpin {
  to { transform: rotate(360deg); }
}
@keyframes authSplashDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes authSplashBar {
  to { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-splash-card--mark,
  .auth-splash-glow,
  .auth-splash-ring,
  .auth-splash-wave,
  .auth-splash-bar-fill { animation: none !important; }
  .auth-splash-wave { stroke-dashoffset: 0; }
  .auth-splash-bar-fill { width: 100%; }
}

.auth-login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease 0.12s, visibility 0.55s ease 0.12s;
}
.auth-login-wrap.is-visible {
  opacity: 1;
  visibility: visible;
}
.auth-login-card {
  width: 100%;
  max-width: 420px;
  padding: 26px 28px 22px;
  background: transparent;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.auth-login-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.auth-login-logo svg { width: 210px; height: auto; }
.auth-login-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff69b4;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 10px; }
.auth-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-left: 2px;
}
.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.auth-input::placeholder { color: #555; }
.auth-input:hover { border-color: rgba(255, 255, 255, 0.18); }
.auth-input:focus {
  border-color: rgba(255, 105, 180, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.12);
}
.auth-remember-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-remember-label {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.auth-mini-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}
.auth-mini-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.auth-mini-slider {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s, border-color 0.25s;
  border-radius: 999px;
}
.auth-mini-slider::before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: #888;
  transition: transform 0.25s, background 0.25s;
  border-radius: 50%;
}
.auth-mini-switch input:checked + .auth-mini-slider {
  background-color: rgba(255, 105, 180, 0.35);
  border-color: rgba(255, 105, 180, 0.5);
}
.auth-mini-switch input:checked + .auth-mini-slider::before {
  transform: translateX(16px);
  background-color: #ff69b4;
}
.auth-remember-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}
.glass-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin-top: 2px;
  padding: 12px 18px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #00d4ff;
  background: transparent;
  color: #00d4ff;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.glass-btn-accent:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #7fffff;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
  transform: translateY(-1px);
}
.glass-btn-accent:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.auth-msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  font-weight: 600;
  color: #fca5a5;
  text-align: center;
}
.auth-msg.ok { color: #86efac; }
.auth-login-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.auth-signup-hint {
  margin: 0;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.auth-signup-hint a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
}
.auth-site-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #00d4ff;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.webapp-home {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.webapp-home-card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  text-align: center;
}
.webapp-home-card h1 {
  margin: 12px 0 8px;
  font-size: 1.4rem;
}
.webapp-home-card p {
  margin: 0 0 18px;
  color: #9aa3b5;
  font-size: 0.95rem;
  line-height: 1.5;
}
.webapp-home-badge {
  display: inline-block;
  color: #ff1493;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.webapp-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.webapp-home-actions .glass-btn-accent { width: auto; min-width: 140px; }

@media (max-width: 480px) {
  .auth-login-card { padding: 22px 18px 18px; }
  .auth-login-logo svg { width: 180px; }
}
