/* =========================================================
   AUTH PUBLIC V2
   Connexion / Création de compte
   ========================================================= */

/* ---------------------------------------------------------
   Page
   --------------------------------------------------------- */

.auth-v2 {
  background:
    radial-gradient(circle at top left, rgba(13, 143, 155, 0.13), transparent 34%),
    linear-gradient(180deg, #eef5f9 0%, #f8fbfd 100%);
}

.auth-v2--single {
  min-height: auto;
  padding: 52px 0 110px;
}

/* ---------------------------------------------------------
   Card
   --------------------------------------------------------- */

.auth-v2__single-card {
  width: min(100%, 640px);
  margin-inline: auto;
}

.auth-v2__card {
  padding: 46px 48px 42px;
  border: 1px solid #d8e7f2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(8, 40, 77, 0.1);
}

.auth-v2__card-head {
  text-align: left;
}

.auth-v2__card-head h1 {
  margin: 18px 0 0;
  color: var(--color-heading);
  font-size: 40px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-v2__card-head p {
  margin: 12px 0 0;
  color: #657c96;
  font-size: 17px;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   Badge
   --------------------------------------------------------- */

.auth-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #b8e4ea;
  border-radius: 10px;
  color: #087f8b;
  background: #eefbfc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-v2__badge i {
  font-size: 15px;
}

/* ---------------------------------------------------------
   Important message
   --------------------------------------------------------- */

.auth-v2__important-card {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 48px;
  padding: 22px 24px;
  border: 1px solid #b8e4ea;
  border-left: 6px solid var(--color-secondary);
  border-radius: 16px;
  background: #fbfeff;
  box-shadow: 0 18px 42px rgba(8, 40, 77, 0.08);
}

.auth-v2__important-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--color-secondary);
  font-size: 19px;
}

.auth-v2__important-card strong {
  display: block;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 800;
}

.auth-v2__important-card p {
  margin: 7px 0 0;
  color: #4f667f;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------------------------------------------------------
   Alerts
   --------------------------------------------------------- */

.auth-v2__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-v2__alert--danger {
  color: #8a1f1f;
  background: #fff1f1;
  border: 1px solid #f3c7c7;
}

.auth-v2__alert--info {
  color: var(--color-heading);
  background: #eef7ff;
  border: 1px solid #cfe4f8;
}

.auth-v2__alert a {
  color: var(--color-secondary);
  font-weight: 800;
}

/* ---------------------------------------------------------
   Form
   --------------------------------------------------------- */

.auth-v2__form {
  margin-top: 0;
}

.auth-v2__field + .auth-v2__field {
  margin-top: 22px;
}

.auth-v2__field label,
.auth-v2__label-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 800;
}

.auth-v2__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-v2__label-row a {
  margin-bottom: 8px;
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 800;
}

.auth-v2__input-wrap {
  position: relative;
}

.auth-v2__input-wrap > i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  color: #7c95ac;
  font-size: 18px;
  transform: translateY(-50%);
}

.auth-v2__input {
  min-height: 48px;
  padding-left: 44px;
  border: 1px solid #d6e4ef;
  border-radius: 14px;
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 600;
  background: #fbfdff;
}

.auth-v2__input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(13, 143, 155, 0.12);
}

.auth-v2__submit {
  width: 100%;
  min-height: 50px;
  margin-top: 30px;
}

.auth-v2__switch {
  margin-top: 28px;
  text-align: center;
  color: #64748b;
  font-size: 15px;
}

.auth-v2__switch a {
  color: var(--color-secondary);
  font-weight: 800;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 575px) {
  .auth-v2--single {
    padding: 38px 0 64px;
  }

  .auth-v2__single-card {
    width: 100%;
  }

  .auth-v2__card {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .auth-v2__card-head h1 {
    font-size: 34px;
  }

  .auth-v2__card-head p {
    font-size: 16px;
  }

  .auth-v2__important-card {
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 34px;
    padding: 18px;
  }

  .auth-v2__label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .auth-v2__label-row a {
    margin-top: -4px;
  }
}
/* ---------------------------------------------------------
   Register page
   --------------------------------------------------------- */

.auth-v2__single-card--register {
  width: min(100%, 760px);
}

.auth-v2__card--register {
  padding: 46px 48px 44px;
}

.auth-v2__form--register {
  margin-top: 28px;
}

.auth-v2__step-card {
  display: flex;
  gap: 14px;
  margin-top: -24px;
  margin-bottom: 34px;
  padding: 16px 18px;
  border: 1px solid #d6e7f2;
  border-radius: 16px;
  background: #f7fbfe;
}

.auth-v2__step-card i {
  color: var(--color-secondary);
  font-size: 24px;
  line-height: 1;
}

.auth-v2__step-card strong {
  display: block;
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 800;
}

.auth-v2__step-card p {
  margin: 4px 0 0;
  color: #5e748c;
  font-size: 14px;
  line-height: 1.5;
}

.auth-v2__password-group {
  display: flex;
  flex-wrap: nowrap;
  border: 1px solid #d6e4ef;
  border-radius: 14px;
  background: #fbfdff;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.auth-v2__password-group:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(13, 143, 155, 0.12);
}

.auth-v2__password-group .auth-v2__input-wrap {
  flex: 1 1 auto;
}

.auth-v2__password-group .auth-v2__input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.auth-v2__password-group .auth-v2__input:focus {
  border-color: transparent;
  box-shadow: none;
}

.auth-v2__eye-btn {
  flex: 0 0 52px;
  width: 52px;
  border: 0;
  border-left: 1px solid #d6e4ef;
  border-radius: 0;
  color: #657c96;
  background: transparent;
}

.auth-v2__password-group:focus-within .auth-v2__eye-btn {
  border-left-color: rgba(13, 143, 155, 0.28);
}

.auth-v2__eye-btn:hover {
  color: var(--color-secondary);
  background: #eefbfc;
}
.auth-v2__terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #d8e7f2;
  border-radius: 16px;
  background: #fbfdff;
}

.auth-v2__terms .form-check-input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #5b7894;
  background-color: #ffffff;
  cursor: pointer;
}

.auth-v2__terms .form-check-input:checked {
  border-color: var(--color-secondary);
  background-color: var(--color-secondary);
}

.auth-v2__terms .form-check-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(13, 143, 155, 0.18);
}

.auth-v2__terms .form-check-label {
  color: var(--color-heading);
  font-weight: 700;
  cursor: pointer;
}

.auth-v2__terms-content {
  color: #516a83;
  font-size: 14px;
  line-height: 1.55;
}

.auth-v2__terms-content a {
  color: var(--color-secondary);
  font-weight: 800;
}

.auth-v2__terms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  font-size: 13px;
}

.auth-v2__terms-links span {
  color: #9aaabd;
}

.auth-v2__rgpd-box {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  color: #60758c;
  background: #f0f7fb;
  font-size: 13px;
  line-height: 1.55;
}

.auth-v2__rgpd-box div + div {
  margin-top: 5px;
}

.auth-v2__rgpd-box strong {
  color: var(--color-heading);
}

.auth-v2__captcha {
  margin-top: 20px;
}

@media (max-width: 575px) {
  .auth-v2__card--register {
    padding: 30px 22px;
  }

  .auth-v2__step-card {
    margin-top: -14px;
    margin-bottom: 28px;
  }

  .auth-v2__terms {
    padding: 16px;
  }
}
.auth-v2__form--register .row.g-3 {
  margin-top: 2px;
}

.auth-v2__form--register .auth-v2__field label {
  margin-bottom: 10px;
}
/* ---------------------------------------------------------
   Registration status pages
   --------------------------------------------------------- */

.auth-v2--status {
  padding: 56px 0 110px;
}

.auth-v2__single-card--status {
  width: min(100%, 720px);
}

.auth-v2__card--status {
  text-align: center;
}

.auth-v2__card-head--center {
  text-align: center;
}

.auth-v2__card-head--center h1 {
  margin-top: 20px;
}

.auth-v2__card-head--center p {
  max-width: 560px;
  margin-inline: auto;
}

.auth-v2__status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  border-radius: 22px;
  color: #ffffff;
  background: var(--color-secondary);
  font-size: 34px;
  box-shadow: 0 18px 38px rgba(13, 143, 155, 0.22);
}

.auth-v2__status-icon--success {
  background: #0d8f9b;
}

.auth-v2__status-panel {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #d8e7f2;
  border-radius: 18px;
  text-align: left;
  background: #fbfdff;
}

.auth-v2__status-panel h2 {
  margin: 0 0 16px;
  color: var(--color-heading);
  font-size: 20px;
  font-weight: 800;
}

.auth-v2__status-text {
  margin: 0;
  color: #536b86;
  font-size: 16px;
  line-height: 1.65;
}

.auth-v2__check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-v2__check-list li {
  display: flex;
  gap: 10px;
  color: #536b86;
  font-size: 15px;
  line-height: 1.55;
}

.auth-v2__check-list i {
  flex: 0 0 auto;
  color: var(--color-secondary);
  font-size: 18px;
  margin-top: 2px;
}

.auth-v2__notice {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #b8e4ea;
  border-left: 5px solid var(--color-secondary);
  border-radius: 16px;
  text-align: left;
  background: #eefbfc;
}

.auth-v2__notice > i {
  flex: 0 0 auto;
  color: var(--color-secondary);
  font-size: 22px;
  margin-top: 2px;
}

.auth-v2__notice strong {
  color: var(--color-heading);
  font-weight: 800;
}

.auth-v2__notice p {
  margin: 4px 0 0;
  color: #536b86;
  font-size: 14px;
  line-height: 1.55;
}

.auth-v2__status-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

@media (max-width: 575px) {
  .auth-v2--status {
    padding: 38px 0 64px;
  }

  .auth-v2__status-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 30px;
  }

  .auth-v2__status-panel {
    padding: 20px;
  }

  .auth-v2__status-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-v2__status-actions .ui-btn,
  .auth-v2__status-actions form,
  .auth-v2__status-actions button {
    width: 100%;
  }
}
.auth-v2__card--profile {
  padding: 52px 56px 48px;
}

.auth-v2__single-card--profile {
  width: min(100%, 940px);
}

.auth-v2__form--profile {
  gap: 24px;
}

.auth-v2__profile-section {
  position: relative;
  padding: 24px;
  border: 1px solid #d7e8f3;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 34px rgba(8, 40, 77, 0.055);
}

.auth-v2__profile-section::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 4px;
  height: 34px;
  border-radius: 0 999px 999px 0;
  background: var(--color-secondary);
  content: '';
  opacity: 0.8;
}

.auth-v2__profile-section--compact::before {
  height: 28px;
}

.auth-v2__profile-section-head span {
  background: #eefbfc;
  color: #087f8b;
}

.auth-v2__profile-section-head strong {
  font-size: 17px;
}

.auth-v2__input {
  background: #ffffff;
}

.auth-v2__input:disabled,
.auth-v2__input[readonly] {
  color: #12385f;
  background: #eef3f7;
  opacity: 1;
}

.auth-v2__field-help {
  margin: 8px 0 0;
  color: #6b8199;
  font-size: 13px;
  line-height: 1.45;
}

.auth-v2__profile-bottom-note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #d8e7f2;
  border-radius: 16px;
  text-align: center;
  color: #536b86;
  background: #fbfdff;
  font-size: 15px;
  line-height: 1.55;
}

.auth-v2__profile-bottom-note a {
  color: var(--color-secondary);
  font-weight: 800;
  text-decoration: none;
}

.auth-v2__profile-bottom-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575px) {
  .auth-v2__card--profile {
    padding: 30px 22px;
  }

  .auth-v2__profile-section {
    padding: 20px 18px;
  }
}
.auth-v2__field-help {
  margin: 8px 0 0;
  color: #6b8199;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-v2__field-help--password {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auth-v2__field-help {
  margin: 8px 0 0;
  color: #6b8199;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-v2__field-help--password {
  display: block;
}
.auth-v2__field-help--password {
  margin-top: 6px;
  color: #7890a8;
  font-size: 12px;
  font-weight: 600;
}
.auth-v2__field-help {
  margin: 8px 0 0;
  color: #6b8199;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.auth-v2__field-help--password {
  display: block;
  margin-top: 6px;
  color: #7890a8;
  font-size: 12px;
}