/**
 * Sintech create-account page — matches login auth chrome.
 * Rendered on body#authentication via /login?create_account=1.
 */

:root {
  --ift-auth-ink: #0f172a;
  --ift-auth-muted: #64748b;
  --ift-auth-line: #e2e8f0;
  --ift-auth-soft: #f8fafc;
  --ift-auth-brand: #FF9A52;
  --ift-auth-brand-2: #ff7c1f;
  --ift-auth-brand-dark: #e56a1a;
  --ift-auth-radius: 16px;
  --ift-auth-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body#authentication {
  font-family: var(--ift-auth-font);
  -webkit-font-smoothing: antialiased;
  background: var(--ift-auth-soft);
}

body#authentication #wrapper {
  background: transparent;
}

body#authentication #inner-wrapper.container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body#authentication .breadcrumb,
body#authentication .page-header {
  display: none !important;
}

body#authentication #main.ift-auth-page--register {
  padding: 0 0 1.5rem;
}

body#authentication .ift-auth-page--register .ift-auth-page__container {
  max-width: 560px;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header card */
body#authentication .ift-auth-page--register .ift-cart-page-header-wrap {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

body#authentication .ift-auth-page--register .ift-cart-page-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem 1.05rem;
  border: 1px solid var(--ift-auth-line);
  border-radius: var(--ift-auth-radius);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 154, 82, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body#authentication .ift-auth-page--register .ift-cart-page-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  color: var(--ift-auth-brand-dark);
  background: linear-gradient(145deg, #fff1e6 0%, #fff7f0 100%);
  border: 1px solid #ffd4b6;
  box-shadow: 0 2px 8px rgba(255, 154, 82, 0.15);
  flex-shrink: 0;
}

body#authentication .ift-auth-page--register .ift-cart-page-header__copy {
  min-width: 0;
}

body#authentication .ift-auth-page--register .ift-cart-page-header__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ift-auth-brand-dark);
}

body#authentication .ift-auth-page--register .ift-cart-page-header__title {
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ift-auth-ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body#authentication .ift-auth-page--register .ift-cart-page-header__title::before,
body#authentication .ift-auth-page--register .ift-cart-page-header__title::after {
  display: none !important;
  content: none !important;
}

body#authentication .ift-auth-page--register .ift-cart-page-header__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ift-auth-muted);
}

/* Stack + cards */
body#authentication .ift-auth-page--register .ift-auth-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body#authentication .ift-auth-page--register .ift-auth-card {
  border: 1px solid var(--ift-auth-line);
  border-radius: var(--ift-auth-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

body#authentication .ift-auth-page--register .ift-auth-card--register {
  padding: 1.25rem 1.25rem 1.15rem;
}

body#authentication .ift-auth-page--register .ift-auth-card--social {
  padding: 1.15rem 1.25rem 1.25rem;
}

body#authentication .ift-auth-page--register .ift-auth-card--social:empty {
  display: none;
}

/* Social login (create account top hook) */
body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_social_wrapper.lgp {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_social_title {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ift-auth-ink);
  letter-spacing: -0.01em;
}

body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_social_item {
  width: 100%;
  margin: 0;
}

body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_social_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 10px !important;
  border: 1px solid var(--ift-auth-line) !important;
  background: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ift-auth-ink) !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_social_btn:hover {
  border-color: #cbd5e1 !important;
  background: var(--ift-auth-soft) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_social_desc,
body#authentication .ift-auth-page--register .ift-auth-card--social .ets_solo_or {
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--ift-auth-muted);
  text-align: left;
}

/* Registration form fields */
body#authentication .ift-auth-page--register #customer-form > div {
  margin: 0;
  padding: 0;
}

body#authentication .ift-auth-page--register #customer-form .form-group.row {
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
  margin: 0 0 0.9rem;
}

body#authentication .ift-auth-page--register #customer-form .form-group .col-md-2,
body#authentication .ift-auth-page--register #customer-form .form-group .col-md-3,
body#authentication .ift-auth-page--register #customer-form .form-group .col-md-8,
body#authentication .ift-auth-page--register #customer-form .form-group .col-md-9,
body#authentication .ift-auth-page--register #customer-form .form-group .col-md-2.form-control-comment {
  flex: 0 0 auto;
  max-width: 100%;
  width: 100%;
  padding: 0;
}

body#authentication .ift-auth-page--register #customer-form .form-group label.col-form-label,
body#authentication .ift-auth-page--register #customer-form .form-group label.form-control-label {
  order: 1;
  margin-bottom: 0.3rem;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ift-auth-ink);
}

body#authentication .ift-auth-page--register #customer-form .form-group label.required::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
}

body#authentication .ift-auth-page--register #customer-form .form-group .col-md-8,
body#authentication .ift-auth-page--register #customer-form .form-group .col-md-9 {
  order: 2;
}

body#authentication .ift-auth-page--register #customer-form .form-group .col-md-2.form-control-comment,
body#authentication .ift-auth-page--register #customer-form .form-control-comment {
  order: 3;
  display: block !important;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ift-auth-muted) !important;
}

body#authentication .ift-auth-page--register #customer-form .form-control {
  min-height: 2.875rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--ift-auth-line);
  background: #fff;
  font-family: var(--ift-auth-font);
  font-size: 0.9375rem;
  color: var(--ift-auth-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body#authentication .ift-auth-page--register #customer-form .form-control:focus {
  border-color: var(--ift-auth-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 154, 82, 0.15);
  outline: none;
}

body#authentication .ift-auth-page--register #customer-form .input-group {
  width: 100%;
}

body#authentication .ift-auth-page--register #customer-form .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

body#authentication .ift-auth-page--register #customer-form .input-group-btn .btn,
body#authentication .ift-auth-page--register #customer-form .input-group .btn {
  min-height: 2.875rem;
  border-radius: 0 10px 10px 0;
  border: 1px solid var(--ift-auth-line);
  border-left: 0;
  background: #fff;
  color: var(--ift-auth-muted);
  box-shadow: none;
}

/* Social title radios */
body#authentication .ift-auth-page--register #customer-form .form-control-valign {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body#authentication .ift-auth-page--register #customer-form .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ift-auth-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ift-auth-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body#authentication .ift-auth-page--register #customer-form .radio-inline:hover {
  border-color: #cbd5e1;
  background: var(--ift-auth-soft);
}

body#authentication .ift-auth-page--register #customer-form .custom-radio {
  margin: 0;
}

body#authentication .ift-auth-page--register #customer-form .custom-radio input[type="radio"]:checked + span {
  background: var(--ift-auth-brand);
  border-color: var(--ift-auth-brand);
}

/* Newsletter checkbox */
body#authentication .ift-auth-page--register #customer-form .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.15rem 0 0;
}

body#authentication .ift-auth-page--register #customer-form .custom-checkbox label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ift-auth-ink);
  line-height: 1.45;
}

body#authentication .ift-auth-page--register #customer-form .custom-checkbox label p,
body#authentication .ift-auth-page--register #customer-form .custom-checkbox .js-mail-alert {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  font-style: normal;
  color: var(--ift-auth-muted);
  line-height: 1.4;
}

/* Captcha */
body#authentication .ift-auth-page--register #customer-form .g-recaptcha,
body#authentication .ift-auth-page--register #customer-form .twddos-front-captcha {
  margin-top: 0.25rem;
}

body#authentication .ift-auth-page--register #customer-form .form-group:has(.g-recaptcha) label.col-form-label,
body#authentication .ift-auth-page--register #customer-form .form-group:has(.g-recaptcha) label.form-control-label {
  margin-bottom: 0.5rem;
}

/* Submit */
body#authentication .ift-auth-page--register #customer-form .form-footer {
  margin: 1.1rem 0 0;
  padding: 0;
  border: 0;
  text-align: left;
}

body#authentication .ift-auth-page--register #customer-form .form-control-submit,
body#authentication .ift-auth-page--register #customer-form .btn.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ift-auth-brand-dark) 0%, var(--ift-auth-brand) 55%, var(--ift-auth-brand-2) 100%);
  box-shadow: 0 8px 20px rgba(255, 154, 82, 0.28);
  font-family: var(--ift-auth-font);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body#authentication .ift-auth-page--register #customer-form .form-control-submit:hover,
body#authentication .ift-auth-page--register #customer-form .form-control-submit:focus,
body#authentication .ift-auth-page--register #customer-form .btn.btn-primary:hover,
body#authentication .ift-auth-page--register #customer-form .btn.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 154, 82, 0.34);
  filter: brightness(1.03);
  color: #fff !important;
}

/* Alerts / errors */
body#authentication .ift-auth-page--register .help-block,
body#authentication .ift-auth-page--register .form-group.has-error .help-block {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #dc2626;
}

body#authentication .ift-auth-page--register .alert {
  margin-bottom: 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
}

/* Login link */
body#authentication .ift-auth-page--register .ift-auth-register {
  margin: 0;
  text-align: center;
}

body#authentication .ift-auth-page--register .ift-auth-register a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ift-auth-brand-dark) !important;
  text-decoration: none;
}

body#authentication .ift-auth-page--register .ift-auth-register a span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body#authentication .ift-auth-page--register .ift-auth-register a:hover {
  color: var(--ift-auth-brand) !important;
}

body#authentication .ift-auth-page--register .ift-auth-register .fa {
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  body#authentication #main.ift-auth-page--register {
    padding-bottom: 0.5rem;
  }

  body#authentication .ift-auth-page--register .ift-cart-page-header {
    padding: 1.15rem 1.2rem 1.1rem;
  }

  body#authentication .ift-auth-page--register .ift-cart-page-header__title {
    font-size: 1.25rem;
  }

  body#authentication .ift-auth-page--register .ift-auth-card--register,
  body#authentication .ift-auth-page--register .ift-auth-card--social {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
