/* Sign-in (Login.dc.html) and « Accès refusé » (NoAccess.dc.html): the two standalone dark pages.
   Loaded after toolbox.css; defines every class those two templates use that toolbox.css lacks. */

/* Sign-in page */

.signin {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 700px at 70% 10%, #6E2FB8 0%, rgba(110,47,184,0) 60%),
    linear-gradient(180deg, #10004E 0%, #350D68 100%);
  background-color: var(--purple-900);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.signin__sky { position: absolute; inset: 0; pointer-events: none; }

.drift {
  position: absolute;
  right: -140px;
  bottom: -160px;
  opacity: .16;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: spin 90s linear infinite;
}

.signin__top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 72px;
  padding: 20px 40px;
}

.signin__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.signin__by { font-size: 13px; color: var(--violet-200); }

.signin__main {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.signin__card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 36px;
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--ink-700);
  box-shadow: 0 24px 56px rgba(16,0,78,.45), var(--shadow-cta);
}

.signin__star { display: flex; justify-content: center; }

.pulse { animation: pulse 6s ease-in-out infinite; }

.signin__intro { display: flex; flex-direction: column; gap: 10px; text-align: center; }

.signin__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-600);
}

.signin__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--purple-800);
}

.signin__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-600); }

.signin__ms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--gray-400);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink-900);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.signin__ms:hover { background: var(--violet-50); color: var(--ink-900); }

.signin__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--violet-50);
  color: var(--purple-800);
  font-size: 13px;
  line-height: 1.5;
}

.signin__note svg { flex: none; margin-top: 1px; }

/* Twinkling stars: three phases, in the artboard's order */

.twinkle { animation: twinkle 4s ease-in-out infinite; }
.twinkle--d2, .twinkle--d7 { animation-delay: -1s; }
.twinkle--d3, .twinkle--d6, .twinkle--d9 { animation-delay: -2.2s; }
.twinkle--d4, .twinkle--d8 { animation-delay: -3.1s; }
.twinkle--d1, .twinkle--d5, .twinkle--d10 { animation-delay: 0s; }

@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .twinkle, .drift, .pulse { animation: none; }
}

/* « Accès refusé » page */

.denied {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 48px 24px 0;
  background: var(--purple-800);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

.denied__card {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--ink-700);
  box-shadow: 0 24px 56px rgba(16,0,78,.35);
}

.denied__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--purple-800);
}

.denied__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--purple-800);
}

.denied__text { margin: 0; font-size: 16px; color: var(--ink-600); }

.denied__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@media (max-width: 600px) {
  .signin__top { padding: 16px 20px; }
  .signin__card { padding: 32px 24px; }
  .denied__card { padding: 28px 20px; }
}
