/* MadeForMed — POC Authentik (login + congrats + forbidden) */
:root {
  --violet: #9a64f0;
  --violet-soft: #ac89e7;
  --violet-bg: #8331ef;
  --violet-bg-2: #b27dff;
  --cream: #fbf7ee;
  --ink: #1f2120;
  --yellow: #f7e96a;
  --red: #d4574a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ─── Shell (layout) ─────────────────────────────────────────── */
.shell {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--violet-bg) 0%, var(--violet-bg-2) 100%);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(480px, 560px) 1fr;
  gap: 32px;
  align-items: center;
}
.shell--centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

/* ─── Card blanche ───────────────────────────────────────────── */
.login-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 44px 24px;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.shell--centered .login-card {
  max-width: 560px;
  min-height: 0;
}

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: auto;
}
.logo-wrap img {
  width: 320px;
  height: auto;
  display: block;
}

.cta-block {
  margin: auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cta-label em {
  font-style: normal;
  font-weight: 500;
}

.btn-connect {
  background: var(--violet-soft);
  color: #fff;
  border-radius: 999px;
  height: 54px;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-connect:hover { background: var(--violet); }
.btn-connect.btn-secondary {
  background: transparent;
  color: var(--violet);
  box-shadow: inset 0 0 0 1px var(--violet-soft);
}
.btn-connect.btn-secondary:hover {
  background: rgba(154, 100, 240, 0.08);
  color: var(--violet);
}

.help-link {
  text-align: center;
  color: var(--violet-soft);
  font-size: 14px;
  font-weight: 450;
  margin-top: auto;
}
.help-link:hover { color: var(--violet); text-decoration: underline; }

.login-foot {
  text-align: center;
  color: #c8c4ba;
  font-size: 12px;
  margin-top: 24px;
}

/* ─── Promo (colonne droite login) ───────────────────────────── */
.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 0;
  color: #fff;
  overflow: hidden;
}
.promo-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.promo h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 18px;
}
.promo p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  max-width: 640px;
  margin-bottom: 30px;
}
.phones-img-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 20px 0;
}
.phones-img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
}

/* ─── /congrats : titre + avatar + infos ─────────────────────── */
.status-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}
.status-mark.success { background: var(--violet-soft); }
.status-mark.deny { background: var(--red); }

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 6px;
  color: var(--ink);
}
.welcome-title em {
  font-style: normal;
  color: var(--violet);
}
.welcome-subtitle {
  text-align: center;
  color: #6b6b6b;
  font-size: 15px;
  margin-bottom: 28px;
}

.info-list {
  width: 100%;
  margin-bottom: 24px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ece8df;
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row.block {
  display: block;
}
.info-label {
  color: #8a8676;
  font-weight: 500;
}
.info-value {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
  max-width: 65%;
}
.info-row.block .info-label {
  display: block;
  margin-bottom: 8px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge-pop { background: var(--yellow); color: var(--ink); }
.badge-role { background: var(--violet-soft); color: #fff; }
.badge-prof { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1px #e6dfc8; }
.badge-grp { background: #f1eee5; color: #6b6b6b; }

.actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.actions .btn-connect { flex: 1; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .login-card {
    min-height: 0;
    padding: 32px 24px;
  }
  .promo {
    padding: 24px 16px 0;
  }
  .phones-img-wrap {
    min-height: 320px;
  }
  .promo h1 { font-size: 26px; }
}
