@font-face {
  font-family: Poppins;
  src: url(/connexion-assets/Poppins-400.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url(/connexion-assets/Poppins-600.ttf) format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url(/connexion-assets/playfair-display-600-latin.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #00214e;
  --paper: #faf8f3;
  --gold: #cc9e46;
  --ink-soft: #3c5070;
  --error-ink: #75261b;
  font-family: Poppins, sans-serif;
  color: var(--navy);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
p { margin: 0; }
[hidden] { display: none; }

.page {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  min-height: 100svh;
}

.panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(2rem, 5.25vw, 6.5rem);
}

.brand {
  width: fit-content;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--gold);
  font-size: 1.0625rem;
  font-weight: 600;
}

.entry {
  align-self: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}

h1 {
  margin: 0 0 1.15rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.8rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.description {
  max-width: 31ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.signin {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  margin-block-start: 2.3rem;
}

.microsoft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.25rem;
  max-width: 100%;
  color: #fff;
  background: var(--navy);
  border-radius: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}

.microsoft:hover { background: #173f70; }
.microsoft:focus-visible { outline: 3px solid #926816; outline-offset: 4px; }
.microsoft-mark {
  flex: 0 0 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 0.125rem;
}
.microsoft-mark span:nth-child(1) { background: #f25022; }
.microsoft-mark span:nth-child(2) { background: #7fba00; }
.microsoft-mark span:nth-child(3) { background: #00a4ef; }
.microsoft-mark span:nth-child(4) { background: #ffb900; }

#professional-account, footer {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.sign-in-error {
  max-width: 39ch;
  color: var(--error-ink);
  font-size: 0.875rem;
}

.illustration {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--navy);
}

.illustration img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.illustration--noria img { object-position: 52% 53%; }
.illustration--kora img { object-position: 53% 46%; }
.illustration--prisme img { object-position: 53% 51%; }
.illustration--orbe img { object-position: 54% 48%; }

@media (max-width: 760px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 1.65rem clamp(1.5rem, 6vw, 3rem); }
  .entry { padding-block: clamp(3rem, 9vw, 5rem) 3rem; }
  h1 { font-size: clamp(3.5rem, 13vw, 5rem); }
  .illustration { min-height: clamp(13rem, 52vw, 23rem); }
  .microsoft { width: min(100%, 22rem); }
}

@media (prefers-reduced-motion: reduce) {
  .microsoft { transition: none; }
}
