/*
 * Click&Staff — Inscription candidat premium
 * Styles strictement limités au shortcode [clickstaff_register_form].
 */

.cs-candidate-register-page,
.cs-candidate-register-page * {
  box-sizing: border-box;
}

.cs-candidate-register-page {
  --cs-cr-text: #1A1612;
  --cs-cr-muted: #675f59;
  --cs-cr-soft-muted: #81766e;
  --cs-cr-accent: #C8472E;
  --cs-cr-accent-dark: #a94b34;
  --cs-cr-border: #e5d9cf;
  --cs-cr-background: #f4efe7;
  --cs-cr-card: #FBF8F2;

  width: 100%;
  padding: clamp(22px, 3vw, 40px) 20px;
  background:
    radial-gradient(circle at 8% 12%, rgba(198, 90, 61, .08), transparent 28%),
    var(--cs-cr-background);
  color: var(--cs-cr-text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-candidate-register-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
  align-items: stretch;
  border: 1px solid var(--cs-cr-border);
  border-radius: 26px;
  background: var(--cs-cr-card);
  box-shadow: 0 28px 80px rgba(32, 24, 18, .09);
}

.cs-candidate-register-panel {
  min-height: 610px;
  padding: clamp(30px, 3.2vw, 42px);
  background:
    radial-gradient(circle at 15% 12%, rgba(198, 90, 61, .2), transparent 34%),
    linear-gradient(145deg, #faefe7 0%, #f3e4d8 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cs-candidate-register-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  color: var(--cs-cr-text);
  text-decoration: none;
  font-size: 19px;
  letter-spacing: .02em;
}

.cs-candidate-register-brand span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--cs-cr-accent);
  box-shadow: inset 0 0 0 1px rgba(198, 90, 61, .13);
}

.cs-candidate-register-eyebrow,
.cs-candidate-register-step {
  display: inline-flex;
  color: var(--cs-cr-accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cs-candidate-register-panel h1 {
  max-width: 470px;
  margin: 14px 0 18px;
  color: var(--cs-cr-text);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(42px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
}

.cs-candidate-register-intro {
  max-width: 470px;
  margin: 0;
  color: var(--cs-cr-muted);
  font-size: 16px;
  line-height: 1.6;
}

.cs-candidate-register-benefits {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.cs-candidate-register-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.cs-candidate-register-benefit > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  color: var(--cs-cr-accent);
  box-shadow: inset 0 0 0 1px rgba(198, 90, 61, .13);
  font-size: 11px;
  font-weight: 900;
}

.cs-candidate-register-benefit strong {
  display: block;
  margin: 1px 0 4px;
  color: var(--cs-cr-text);
  font-size: 14px;
}

.cs-candidate-register-benefit p {
  margin: 0;
  color: var(--cs-cr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.cs-candidate-register-panel-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(166, 83, 61, .15);
  color: var(--cs-cr-muted);
  font-size: 14px;
}

.cs-candidate-register-panel-footer a,
.cs-candidate-register-login a,
.cs-candidate-register-consent a {
  color: var(--cs-cr-accent-dark);
  text-decoration: none;
  font-weight: 850;
}

.cs-candidate-register-content {
  display: flex;
  align-items: center;
  min-height: 610px;
  height: 100%;
  padding: clamp(30px, 3.2vw, 42px);
  background:
    linear-gradient(180deg, #FBF8F2 0%, #fcfaf8 100%);
}

.cs-candidate-register-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.cs-candidate-register-header {
  margin-bottom: 22px;
}

.cs-candidate-register-header h2,
.cs-candidate-register-logged h1 {
  margin: 11px 0 10px;
  color: var(--cs-cr-text);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.cs-candidate-register-header p,
.cs-candidate-register-logged p {
  max-width: 520px;
  margin: 0;
  color: var(--cs-cr-muted);
  font-size: 15px;
  line-height: 1.6;
}

.cs-candidate-register-form {
  margin: 0;
}

.cs-candidate-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cs-candidate-register-field {
  min-width: 0;
  margin-bottom: 13px;
}

.cs-candidate-register-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--cs-cr-text);
  font-size: 13px;
  font-weight: 850;
}

.cs-candidate-register-field input {
  width: 100%;
  height: 50px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid #ddd2ca;
  border-radius: 12px;
  background: #fff;
  color: var(--cs-cr-text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.cs-candidate-register-field input::placeholder {
  color: #aca19a;
}

.cs-candidate-register-field input:hover {
  border-color: #cabbb0;
}

.cs-candidate-register-field input:focus {
  border-color: var(--cs-cr-accent);
  box-shadow: 0 0 0 4px rgba(198, 90, 61, .11);
}

.cs-candidate-register-password {
  position: relative;
}

.cs-candidate-register-password input {
  padding-right: 84px;
}

.cs-candidate-register-toggle {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  border: 0;
  padding: 5px;
  background: transparent;
  color: var(--cs-cr-accent-dark);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.cs-candidate-register-help {
  margin: -2px 0 15px;
  color: var(--cs-cr-soft-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cs-candidate-register-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 2px 0 18px;
  color: var(--cs-cr-muted);
  font-size: 13px;
  line-height: 1.55;
}

.cs-candidate-register-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--cs-cr-accent);
}

.cs-candidate-register-primary,
.cs-candidate-register-primary:visited,
.cs-candidate-register-secondary,
.cs-candidate-register-secondary:visited {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.cs-candidate-register-primary {
  border: 1px solid var(--cs-cr-accent);
  background: var(--cs-cr-accent);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(198, 90, 61, .22);
}

.cs-candidate-register-primary:hover {
  transform: translateY(-1px);
  border-color: var(--cs-cr-accent-dark);
  background: var(--cs-cr-accent-dark);
  color: #fff !important;
}

.cs-candidate-register-secondary {
  border: 1px solid #ddd2ca;
  background: #fff;
  color: var(--cs-cr-text) !important;
  box-shadow: none;
}

.cs-candidate-register-secondary:hover {
  transform: translateY(-1px);
  border-color: #c7b8ad;
  background: #fff8f4;
  color: var(--cs-cr-text) !important;
}

.cs-candidate-register-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  color: #9a8f87;
  font-size: 12px;
}

.cs-candidate-register-divider::before,
.cs-candidate-register-divider::after {
  content: "";
  height: 1px;
  background: #ebe3dd;
}

.cs-candidate-register-login {
  margin: 15px 0 0;
  text-align: center;
  color: var(--cs-cr-muted);
  font-size: 13px;
}

.cs-candidate-register-client-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #efc9bf;
  border-radius: 13px;
  background: #fff2ef;
  color: #a53722;
  font-size: 13px;
  font-weight: 750;
}

.cs-candidate-register-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.cs-candidate-register-page .cs-auth-alert {
  margin: 0 0 22px;
}

.cs-candidate-register-logged {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--cs-cr-border);
  border-radius: 28px;
  background: var(--cs-cr-card);
  box-shadow: 0 22px 60px rgba(32, 24, 18, .08);
  text-align: center;
}

.cs-candidate-register-logged .cs-candidate-register-primary {
  width: auto;
  min-width: 220px;
  margin-top: 26px;
  padding: 0 24px;
}

@media (max-width: 900px) {
  .cs-candidate-register-shell {
    grid-template-columns: 1fr;
  }

  .cs-candidate-register-panel {
    min-height: auto;
  }

  .cs-candidate-register-brand {
    margin-bottom: 38px;
  }

  .cs-candidate-register-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cs-candidate-register-benefit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cs-candidate-register-page {
    padding: 14px 10px 30px;
  }

  .cs-candidate-register-shell {
    border-radius: 24px;
  }

  .cs-candidate-register-panel,
  .cs-candidate-register-content {
    padding: 26px 22px;
  }

  .cs-candidate-register-panel h1 {
    font-size: 44px;
  }

  .cs-candidate-register-benefits,
  .cs-candidate-register-grid {
    grid-template-columns: 1fr;
  }

  .cs-candidate-register-benefit {
    grid-template-columns: 34px 1fr;
  }

  .cs-candidate-register-header h2 {
    font-size: 34px;
  }
}


/* Alignement strict des deux colonnes */
.cs-candidate-register-panel,
.cs-candidate-register-content {
  align-self: stretch;
}

.cs-candidate-register-content {
  min-width: 0;
}

.cs-candidate-register-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .cs-candidate-register-panel,
  .cs-candidate-register-content {
    min-height: auto;
  }

  .cs-candidate-register-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (max-width: 680px) {
  .cs-candidate-register-page {
    padding: 12px 8px 24px;
  }

  .cs-candidate-register-panel,
  .cs-candidate-register-content {
    padding: 22px 18px;
  }

  .cs-candidate-register-brand {
    margin-bottom: 26px;
  }

  .cs-candidate-register-panel h1 {
    font-size: 40px;
  }

  .cs-candidate-register-intro {
    font-size: 15px;
  }

  .cs-candidate-register-benefits {
    margin-top: 22px;
  }

  .cs-candidate-register-panel-footer {
    margin-top: 22px;
  }

  .cs-candidate-register-header {
    margin-bottom: 18px;
  }

  .cs-candidate-register-header h2 {
    font-size: 32px;
  }
}