/* DentifyLab | Premium Registration v1
   Scoped only to the PrestaShop registration page.
   Preserves native registration and validation functionality.
*/
body#registration,
body.page-registration {
  --dl-reg-green: #199d59;
  --dl-reg-ink: #142a20;
  --dl-reg-muted: #617168;
  --dl-reg-line: #e1eae4;
}

/* Page heading and main container */
body#registration #main,
body.page-registration #main {
  max-width: 1040px;
  margin: 24px auto 64px;
  padding: 0 18px;
  min-width: 0;
}
body#registration #main .page-header,
body.page-registration #main .page-header {
  max-width: 790px;
  margin: 0 auto;
  padding: 32px 38px 27px;
  background: linear-gradient(120deg,#0e241b,#142d25 65%,#1e3e31);
  border: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 15px 42px rgba(13,33,21,.10);
}
body#registration #main .page-header h1,
body#registration #main .page-header .h1,
body.page-registration #main .page-header h1,
body.page-registration #main .page-header .h1 {
  font-size: clamp(27px,3.5vw,39px);
  font-weight: 800;
  line-height: 1.16;
  color: #fff !important;
  letter-spacing: -.025em;
  margin: 0;
  text-transform: none;
}

/* The actual account form, no TPL edits */
body#registration #main .register-form,
body.page-registration #main .register-form {
  max-width: 790px;
  margin: 0 auto;
  padding: 30px 38px 38px;
  background: #fff;
  border: 1px solid var(--dl-reg-line);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 18px 48px rgba(20,45,29,.08);
  color: var(--dl-reg-ink);
}
body#registration #main .register-form > p,
body.page-registration #main .register-form > p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--dl-reg-muted);
}
body#registration #main .register-form > p a,
body.page-registration #main .register-form > p a {
  color: #12844b !important;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body#registration #main .register-form .form-group.row,
body.page-registration #main .register-form .form-group.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0 0 19px;
  min-width: 0;
}
body#registration #main .register-form .form-group.row > [class*="col-"],
body.page-registration #main .register-form .form-group.row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: none;
  float: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: left;
}
body#registration #main .register-form .form-control-label,
body.page-registration #main .register-form .form-control-label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
  color: #233b2d;
  padding: 0;
  margin-bottom: 2px;
}
body#registration #main .register-form input.form-control,
body#registration #main .register-form select.form-control,
body.page-registration #main .register-form input.form-control,
body.page-registration #main .register-form select.form-control {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid #d7e2da;
  border-radius: 12px;
  background: #f8fbf9;
  color: #172f22;
  font-size: 15px;
  padding: 0 15px;
  box-shadow: none;
  outline: 0;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
body#registration #main .register-form input.form-control:focus,
body.page-registration #main .register-form input.form-control:focus {
  background: #fff;
  border-color: var(--dl-reg-green);
  box-shadow: 0 0 0 3px rgba(25,157,89,.12);
}
/* Password visibility button remains functional */
body#registration #main .register-form .input-group,
body.page-registration #main .register-form .input-group {
  display: flex;
  width: 100%;
  min-width: 0;
}
body#registration #main .register-form .input-group .form-control,
body.page-registration #main .register-form .input-group .form-control {
  flex: 1 1 auto;
  width: 1%;
  border-radius: 12px 0 0 12px;
}
body#registration #main .register-form .input-group .input-group-btn,
body#registration #main .register-form .input-group .input-group-append,
body.page-registration #main .register-form .input-group .input-group-btn,
body.page-registration #main .register-form .input-group .input-group-append {
  flex: none;
}
body#registration #main .register-form .input-group button,
body.page-registration #main .register-form .input-group button {
  min-height: 50px;
  border: 1px solid #d7e2da;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #ecf3ee;
  color: #254632;
  padding: 0 16px;
  font-weight: 700;
}
/* Informational hints, GDPR and newsletter text */
body#registration #main .register-form .form-control-comment,
body#registration #main .register-form .form-control-feedback,
body#registration #main .register-form .form-text,
body.page-registration #main .register-form .form-control-comment,
body.page-registration #main .register-form .form-control-feedback,
body.page-registration #main .register-form .form-text {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: #819087;
  font-style: normal;
  overflow-wrap: anywhere;
}
body#registration #main .register-form .custom-checkbox,
body.page-registration #main .register-form .custom-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.55;
}
body#registration #main .register-form .custom-checkbox label,
body.page-registration #main .register-form .custom-checkbox label {
  white-space: normal;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #34473c;
}
body#registration #main .register-form .custom-checkbox input[type="checkbox"],
body.page-registration #main .register-form .custom-checkbox input[type="checkbox"] {
  flex: none;
}
body#registration #main .register-form .form-footer,
body.page-registration #main .register-form .form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 0 0;
  margin: 18px 0 0;
  background: none;
  border: 0;
}
body#registration #main .register-form .form-footer .btn,
body.page-registration #main .register-form .form-footer .btn {
  min-width: 190px;
  min-height: 50px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: #198f50;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(18,130,71,.16);
  transition: background .18s, transform .18s;
}
body#registration #main .register-form .form-footer .btn:hover,
body.page-registration #main .register-form .form-footer .btn:hover {
  background: #137541;
  transform: translateY(-1px);
}
body#registration #main .register-form .alert,
body.page-registration #main .register-form .alert {
  border-radius: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
@media(max-width:767px) {
  body#registration #main,
  body.page-registration #main {
    margin: 14px auto 36px;
    padding: 0 12px;
  }
  body#registration #main .page-header,
  body.page-registration #main .page-header {
    padding: 25px 20px;
    border-radius: 19px 19px 0 0;
  }
  body#registration #main .register-form,
  body.page-registration #main .register-form {
    padding: 24px 18px 28px;
    border-radius: 0 0 19px 19px;
  }
  body#registration #main .register-form .form-group.row,
  body.page-registration #main .register-form .form-group.row {
    margin-bottom: 17px;
  }
  body#registration #main .register-form .form-footer,
  body.page-registration #main .register-form .form-footer {
    display: block;
  }
  body#registration #main .register-form .form-footer .btn,
  body.page-registration #main .register-form .form-footer .btn {
    display: block;
    width: 100%;
    min-width: 0;
  }
}


/* ========================================================
   V2 FIX - password visibility control stays inside field
   Registration only; supports PrestaShop input-group markup.
   ======================================================== */
@media (min-width: 0px) {
  body#registration #main .register-form .input-group,
  body.page-registration #main .register-form .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  body#registration #main .register-form .input-group > input.form-control,
  body.page-registration #main .register-form .input-group > input.form-control,
  body#registration #main .register-form .input-group > .form-control,
  body.page-registration #main .register-form .input-group > .form-control {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    border-radius: 12px 0 0 12px !important;
  }
  body#registration #main .register-form .input-group > .input-group-btn,
  body#registration #main .register-form .input-group > .input-group-append,
  body.page-registration #main .register-form .input-group > .input-group-btn,
  body.page-registration #main .register-form .input-group > .input-group-append {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    position: static !important;
    margin: 0 !important;
  }
  body#registration #main .register-form .input-group .input-group-btn > button,
  body#registration #main .register-form .input-group .input-group-append > button,
  body.page-registration #main .register-form .input-group .input-group-btn > button,
  body.page-registration #main .register-form .input-group .input-group-append > button {
    position: static !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    justify-content: center !important;
    align-items: center !important;
    height: 50px !important;
    min-height: 50px !important;
    width: auto !important;
    min-width: 74px !important;
    max-width: 100px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 0 12px 12px 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }
}
@media (max-width: 575px) {
  body#registration #main .register-form .input-group .input-group-btn > button,
  body#registration #main .register-form .input-group .input-group-append > button,
  body.page-registration #main .register-form .input-group .input-group-btn > button,
  body.page-registration #main .register-form .input-group .input-group-append > button {
    min-width: 64px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}
