/**
 * BroKanteur — inscription / connexion acheteur
 * Formulaire centré, typo vitrine (Cormorant + DM Sans)
 */

/* Registration is shared by the standalone page and the desktop account panel. */
.bk-auth-embedded{--g-ink:#193e31;--g-ink-soft:#435448;--g-muted:#59625b;--g-green:#193e31;--g-line:#d7d0c5;--bk-public-serif:"Playfair Display",Georgia,serif;font-family:"DM Sans",system-ui,sans-serif;color:#193e31}
@media(min-width:900px){
  .auth-buyer-register-page main.auth-buyer{box-sizing:border-box;width:min(820px,100%);max-width:820px;flex:0 0 auto;margin:40px auto;padding:36px 44px}
  .auth-buyer-register-page .auth-buyer__form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
  .auth-buyer-register-page .auth-buyer__form>:not(.auth-buyer__field){grid-column:1/-1}
}
.bk-auth-embedded body.auth-buyer-page{display:block;min-height:0;margin:0;padding:0;background:#faf8f3}
.bk-auth-embedded body>:not(main):not(script):not(.grecaptcha-badge):not(:has(.grecaptcha-badge)):not(:has(iframe[src*="recaptcha"])){display:none!important}
.bk-auth-embedded main.auth-buyer{box-sizing:border-box;width:100%;max-width:none;min-height:0;margin:0;padding:22px 32px 32px;border:0;border-radius:0;box-shadow:none;background:transparent}
.bk-auth-embedded .auth-buyer__brand{display:none}
.bk-auth-embedded .auth-buyer__title{font-size:30px;margin-bottom:24px}
.auth-buyer-register-page .auth-buyer__field{min-width:0}
.auth-buyer-register-page .auth-buyer__field input{box-sizing:border-box}
@media(min-width:560px){
  .bk-auth-embedded .auth-buyer__form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
  .bk-auth-embedded .auth-buyer__form>:not(.auth-buyer__field){grid-column:1/-1}
}

.auth-buyer-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 48px 20px 0;
}

.auth-buyer {
  width: min(440px, 100%);
  margin: 0 auto;
  flex: 1 0 auto;
  padding-bottom: 48px;
}

.auth-buyer__brand {
  display: inline-block;
  margin: 0 0 32px;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.auth-buyer__title {
  margin: 0 0 28px;
  font-family: var(--bk-public-serif);
  font-size: clamp(1.75rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--g-ink);
}

.auth-buyer__roles {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.auth-buyer__roles-legend {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--g-ink);
}

.auth-buyer__roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-buyer__role {
  margin: 0;
  cursor: pointer;
}

.auth-buyer__role input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-buyer__role-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 78px;
  padding: 14px 12px;
  border: 1px solid #c8c0b6;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-buyer__role-title {
  font-family: var(--bk-public-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--g-ink);
}

.auth-buyer__role-desc {
  font-size: 12px;
  line-height: 1.35;
  color: var(--g-muted, #6b6558);
}

.auth-buyer__role input:focus-visible + .auth-buyer__role-card {
  outline: 2px solid var(--g-ink);
  outline-offset: 2px;
}

.auth-buyer__role input:checked + .auth-buyer__role-card {
  border-color: var(--g-ink);
  box-shadow: 0 0 0 1px var(--g-ink);
  background: #faf8f4;
}

.auth-buyer__seller-panel {
  margin: 0 0 8px;
}

.auth-buyer__seller-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--g-ink-soft, #4a453c);
}

.auth-buyer__seller-panel .auth-buyer__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-buyer__seller-hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--g-muted, #6b6558);
}

.auth-buyer__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-buyer__field {
  margin-bottom: 18px;
}

.auth-buyer__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g-ink);
  letter-spacing: 0;
  text-transform: none;
}

.auth-buyer__field input[type="text"],
.auth-buyer__field input[type="email"],
.auth-buyer__field input[type="tel"],
.auth-buyer__field input[type="password"],
.auth-buyer__field input[type="date"] {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #c8c0b6;
  border-radius: 2px;
  background: #fff;
  color: var(--g-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-buyer__field input:focus {
  outline: none;
  border-color: var(--g-ink);
  box-shadow: 0 0 0 1px var(--g-ink);
}

.auth-buyer__field input:-webkit-autofill,
.auth-buyer__field input:-webkit-autofill:hover,
.auth-buyer__field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #eef4fc inset;
  box-shadow: 0 0 0 1000px #eef4fc inset;
  -webkit-text-fill-color: var(--g-ink);
}

.auth-buyer__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--g-muted);
}

.auth-buyer__checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 22px;
}

.auth-buyer__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--g-ink-soft);
  cursor: pointer;
}

.auth-buyer__check input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--g-ink);
  cursor: pointer;
}

.auth-buyer__check a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-buyer__check a:hover {
  color: var(--g-green);
}

.auth-buyer__error {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #b42318;
}

.auth-buyer__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--g-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.auth-buyer__submit:hover {
  background: #000;
}

.auth-buyer__submit:active {
  transform: scale(0.99);
}

.auth-buyer__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-buyer__foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--g-line);
  text-align: center;
  font-size: 13px;
  color: var(--g-muted);
}

.auth-buyer__foot a {
  color: var(--g-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-buyer__foot a:hover {
  color: var(--g-green);
}

.auth-buyer__foot-links {
  margin-top: 12px;
  font-size: 12px;
}

.auth-buyer__foot-links a {
  font-weight: 500;
  color: var(--g-muted);
}

.auth-buyer .password-wrap {
  position: relative;
}

.auth-buyer .password-wrap input {
  padding-right: 48px;
}

.auth-buyer .toggle-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-buyer .toggle-eye:hover svg {
  stroke: var(--g-green);
}

/* ── Gate Connexion · Inscription (structure email → Continuer → social) ── */
.auth-buyer--gate {
  position: relative;
}

.auth-buyer__close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ece7de;
  color: var(--g-ink-soft);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-buyer__close:hover {
  background: #e0d9cc;
  color: var(--g-ink);
}

.auth-buyer__forgot {
  margin: -6px 0 16px;
  font-size: 13px;
}

.auth-buyer__forgot a {
  color: var(--g-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-buyer__forgot a:hover {
  color: var(--g-green);
}

.auth-buyer__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
  color: var(--g-muted);
  font-size: 13px;
}

.auth-buyer__divider::before,
.auth-buyer__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--g-line);
}

.auth-buyer__divider span {
  flex-shrink: 0;
}

.auth-buyer__social {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.auth-buyer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.auth-buyer__social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 42, 34, 0.12);
}

.auth-buyer__social-btn--google {
  background: #fff;
  border: 1.5px solid var(--g-line);
  color: var(--g-ink);
}

.auth-buyer__social-btn--apple {
  background: var(--g-ink);
  border: 1.5px solid var(--g-ink);
  color: #fff;
}

.auth-buyer__social-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-buyer__social-btn.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .auth-buyer-page {
    padding-top: 32px;
  }

  .auth-buyer__brand {
    margin-bottom: 24px;
  }
}

/* ── Footer vitrine (réseaux + newsletter) ── */
.auth-site-footer {
  width: 100%;
  margin-top: auto;
  background: var(--g-ink);
  color: rgba(255, 255, 255, 0.92);
  padding: 40px 4vw 48px;
}

.auth-site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(120px, 160px) repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
  align-items: start;
}

.auth-site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  color: var(--g-ink);
  text-decoration: none;
  text-align: center;
  padding: 12px;
  font-family: var(--bk-public-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-site-footer__logo span {
  display: block;
}

.auth-site-footer__logo .bk-wordmark__k {
  color: var(--g-green);
}

.auth-site-footer__col-title {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.auth-site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-site-footer__links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

.auth-site-footer__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-site-footer__social {
  display: flex;
  gap: 12px;
  margin: 0 0 22px;
}

.auth-site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--g-ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-site-footer__social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.auth-site-footer__social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-site-footer__newsletter-label {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.auth-site-footer__newsletter {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 4px 4px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-site-footer__newsletter input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px 8px 0;
}

.auth-site-footer__newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.auth-site-footer__newsletter input:focus {
  outline: none;
}

.auth-site-footer__newsletter button {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.auth-site-footer__newsletter button:hover {
  color: #fff;
}

.auth-site-footer__newsletter-msg {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.auth-site-footer__copy {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

@media (max-width: 900px) {
  .auth-site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .auth-site-footer__logo-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .auth-site-footer {
    padding: 32px 20px max(40px, env(safe-area-inset-bottom, 0px));
  }

  .auth-site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .auth-site-footer__logo {
    width: 96px;
    height: 96px;
    font-size: 13px;
  }
}

.bk-auth-embedded .auth-buyer__close{display:none}
.bk-auth-embedded .auth-buyer__field{margin-bottom:0}
.bk-auth-embedded .auth-buyer__field:has(#display_name){grid-column:1/-1}
.bk-auth-embedded .auth-buyer__field:has(#password),.bk-auth-embedded .auth-buyer__field:has(#password_confirm){grid-column:1/-1}
