/* =====================================================================================================
   CREATE ACCOUNT (CHG-019) - design: Register.dc.html. Scoped to body.customer-account-create.
   Magento puts the page title outside the form: title + form are joined into one white card, the
   "Why create an account" cards (template block, Magento_Customer/templates/bs-register-extras.phtml) sit in a right column.
   ===================================================================================================== */
body.customer-account-create, body.customer-account-create .page-wrapper { background: var(--bs-cream); color: var(--bs-ink); font-family: var(--bs-font-text); }

/* breadcrumb (template block in page.top) */
body.customer-account-create .bs-reg-crumbs { box-sizing: border-box; max-width: 1488px; width: 100%; margin: 0 auto; padding: 28px 24px 0; display: flex; gap: 8px; font-size: 14px; line-height: normal; color: var(--bs-muted); }
body.customer-account-create .bs-reg-crumbs a { color: var(--bs-muted); text-decoration: none; }
body.customer-account-create .bs-reg-crumbs a:hover { color: var(--bs-rust); }
body.customer-account-create .bs-reg-crumbs__current { color: var(--bs-ink); }

/* page grid: card | right column */
body.customer-account-create .page-main { max-width: 1488px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 24px 24px 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); column-gap: 28px; row-gap: 0; align-items: start; }
body.customer-account-create .page-main > a#contentarea { display: none; }
body.customer-account-create .page-main > .page.messages { grid-column: 1; grid-row: 2; margin: 0; }
body.customer-account-create .page.messages:not(:has(.message)) { display: none; }
body.customer-account-create .page-main > .page.messages:has(.message) { margin: 0 0 16px; }
body.customer-account-create .page-main > .columns { display: contents; }
body.customer-account-create .page-main > .page-title-wrapper { grid-column: 1; grid-row: 1; box-sizing: border-box; width: 100% !important; margin: 0 !important; padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 !important; background: #FFFFFF; border-radius: 28px 28px 0 0; text-align: left; box-shadow: none !important; }
body.customer-account-create .page-main > .page-title-wrapper .page-title { margin: 0; padding: 0; font-family: var(--bs-font-display); font-weight: 500; font-size: clamp(32px, 3vw, 44px); letter-spacing: -0.02em; line-height: normal; text-align: left !important; text-transform: none; color: var(--bs-ink); }
body.customer-account-create .page-main > .page-title-wrapper .page-title .base { font: inherit; letter-spacing: inherit; text-transform: none; }
body.customer-account-create .page-main > .columns > .column.main { grid-column: 1; grid-row: 3; box-sizing: border-box; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0; float: none; background: #FFFFFF; border-radius: 0 0 28px 28px; box-shadow: none !important; }
body.customer-account-create .bs-reg-sub { margin: 0; padding: 8px clamp(24px, 3vw, 40px) 0; font-size: 16px; line-height: normal; color: var(--bs-ink-2); }
body.customer-account-create .bs-reg-sub a { font-weight: 700; color: var(--bs-navy); text-decoration: underline; }
body.customer-account-create .bs-reg-sub a:hover { color: var(--bs-rust); }

/* right column */
body.customer-account-create .page-main > .columns > .bs-reg-aside { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 16px; }
body.customer-account-create .bs-reg-why { background: var(--bs-navy); color: #FFFFFF; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
body.customer-account-create .bs-reg-why__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; line-height: normal; color: #F0B98C; }
body.customer-account-create .bs-reg-why__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
body.customer-account-create .bs-reg-why__list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0; color: #FFFFFF; }
body.customer-account-create .bs-reg-why__list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23F0B98C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>") no-repeat center / 20px 20px; }
body.customer-account-create .bs-reg-help { background: #FFFFFF; border-radius: 24px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: normal; color: var(--bs-ink-2); }
body.customer-account-create .bs-reg-help strong { color: var(--bs-ink); font-weight: 700; }
body.customer-account-create .bs-reg-help a { font-weight: 700; color: var(--bs-navy); text-decoration: none; }

/* form */
body.customer-account-create form#form-validate.form-create-account { box-sizing: border-box; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 28px clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; float: none; background: none; border: 0; box-shadow: none !important; letter-spacing: normal; }
body.customer-account-create form#form-validate.form-create-account > fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; align-content: start; letter-spacing: normal; word-spacing: normal; }
body.customer-account-create form#form-validate.form-create-account > fieldset > br { display: none; }
body.customer-account-create form#form-validate.form-create-account > fieldset.additional_info:empty { display: none; }
body.customer-account-create form#form-validate.form-create-account fieldset > legend.legend { grid-column: 1 / -1; float: none; box-sizing: border-box; width: 100%; margin: 0 0 4px; padding: 0 0 12px; border: 0; border-bottom: 1px solid #ECE6DC; box-shadow: none; font-family: var(--bs-font-text); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; line-height: normal; text-align: left !important; text-transform: uppercase; color: var(--bs-muted); }
body.customer-account-create form#form-validate.form-create-account fieldset > legend.legend span { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }

/* fields */
body.customer-account-create form#form-validate.form-create-account fieldset > .field { grid-column: span 4; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; width: auto !important; float: none; min-width: 0; }
body.customer-account-create form#form-validate.form-create-account fieldset > .field > label.label { display: block; float: none; width: auto; margin: 0; padding: 0; text-align: left; font-family: var(--bs-font-text); font-size: 14px; font-weight: 600; line-height: normal; color: var(--bs-ink); }
body.customer-account-create form#form-validate.form-create-account fieldset > .field > .control { float: none; width: auto; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
body.customer-account-create form#form-validate.form-create-account input.input-text { width: 100%; height: 52px; box-sizing: border-box; margin: 0; border: 1px solid #CFC7BA; border-radius: 12px; padding: 0 14px; background: #FBFAF7; font-family: var(--bs-font-text); font-size: 16px; color: var(--bs-ink); box-shadow: none; }
body.customer-account-create form#form-validate.form-create-account select { width: 100%; height: 50px; box-sizing: border-box; margin: 0; border: 1px solid #CFC7BA; border-radius: 12px; padding: 0 12px; background: #FBFAF7; font-family: var(--bs-font-text); font-size: 16px; color: var(--bs-ink); box-shadow: none; }
body.customer-account-create form#form-validate.form-create-account input.input-text:focus, body.customer-account-create form#form-validate.form-create-account select:focus { border-color: var(--bs-navy); outline: 2px solid rgba(30, 58, 95, 0.25); outline-offset: 0; }
body.customer-account-create form#form-validate.form-create-account .field.choice { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; font-size: 15px; position: relative; }
body.customer-account-create form#form-validate.form-create-account .field.choice:empty { display: none; }
body.customer-account-create form#form-validate.form-create-account .field.choice > input { -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; margin: 0; accent-color: var(--bs-navy); }
body.customer-account-create form#form-validate.form-create-account .field.choice > label.label { margin: 0; font-size: 15px; font-weight: 400; color: var(--bs-ink); }
body.customer-account-create form#form-validate.form-create-account .field.choice > input::before, body.customer-account-create form#form-validate.form-create-account .field.choice > input::after, body.customer-account-create form#form-validate.form-create-account .field.choice > label::before, body.customer-account-create form#form-validate.form-create-account .field.choice > label::after { content: none; display: none; }
body.customer-account-create form#form-validate.form-create-account .field-tooltip { display: none; }
body.customer-account-create form#form-validate.form-create-account label[for="is_subscribed"] span::after { content: " \2014  online-only deals and clearance alerts"; }
body.customer-account-create form#form-validate.form-create-account label[for="assistance_allowed_checkbox"] span::after { content: " (lets our team help with your design or order)"; font-size: 13px; color: var(--bs-muted); }

/* address block: company | phone, street full width, country | state | city | zip */
body.customer-account-create form#form-validate.form-create-account fieldset.address > .field.street { grid-column: 1 / -1; }
body.customer-account-create form#form-validate.form-create-account fieldset.address > .field.street .nested, body.customer-account-create form#form-validate.form-create-account fieldset.address > .field.street .nested .field { margin: 0; padding: 0; }
body.customer-account-create form#form-validate.form-create-account fieldset.address > .field.street .nested .field > label.label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.customer-account-create form#form-validate.form-create-account fieldset.address > .field:not(.company):not(.telephone):not(.street) { grid-column: span 2; }

/* sign-in block */
body.customer-account-create form#form-validate.form-create-account fieldset.account > .field:has(#email_address) { grid-column: 1 / span 5; }
body.customer-account-create form#form-validate.form-create-account fieldset.account > .field.password, body.customer-account-create form#form-validate.form-create-account fieldset.account > .field.confirmation { grid-column: span 4; }
body.customer-account-create form#form-validate.form-create-account fieldset.account::after { content: "Minimum 8 characters with at least 3 of: lowercase, uppercase, numbers, special characters."; grid-column: 1 / -1; font-size: 13px; line-height: normal; letter-spacing: normal; color: var(--bs-muted); }

/* password strength: bar + label */
body.customer-account-create #password-strength-meter-container { margin: 0; padding: 0; background: none !important; width: 100%; }
body.customer-account-create #password-strength-meter.password-strength-meter { --bs-pw: 0%; --bs-pwc: #C9CDD2; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 10px; width: 100%; margin: 0; padding: 0 !important; border: 0 !important; background: none !important; background-image: none !important; height: auto !important; box-shadow: none; text-shadow: none; font-size: 13px; line-height: 18px !important; color: var(--bs-muted) !important; }
body.customer-account-create #password-strength-meter.password-strength-meter::before { content: ""; order: -1; flex: 1; min-width: 40px; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--bs-pwc) var(--bs-pw), #ECE6DC var(--bs-pw)); position: static; width: auto; }
body.customer-account-create #password-strength-meter.password-strength-meter::after { content: none; display: none; }
body.customer-account-create #password-strength-meter.password-weak { --bs-pw: 25%; --bs-pwc: #B42318; }
body.customer-account-create #password-strength-meter.password-medium { --bs-pw: 50%; --bs-pwc: #D29A1C; }
body.customer-account-create #password-strength-meter.password-strong { --bs-pw: 75%; --bs-pwc: #1F6B3A; }
body.customer-account-create #password-strength-meter.password-very-strong { --bs-pw: 100%; --bs-pwc: #1E3A5F; }
body.customer-account-create #password-strength-meter-label { display: inline; margin: 0; padding: 0; background: none; font-size: 13px; font-weight: 400; color: var(--bs-muted) !important; }

/* buttons */
body.customer-account-create form#form-validate.form-create-account .actions-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; padding: 8px 0 0; border-top: 1px solid #ECE6DC; width: auto; float: none; }
body.customer-account-create form#form-validate.form-create-account .actions-toolbar::before, body.customer-account-create form#form-validate.form-create-account .actions-toolbar::after { content: none; display: none; }
body.customer-account-create form#form-validate.form-create-account .actions-toolbar > .primary, body.customer-account-create form#form-validate.form-create-account .actions-toolbar > .secondary { float: none; width: auto; margin: 0; padding: 0; display: block; }
body.customer-account-create form#form-validate.form-create-account button.action.submit.primary { height: 56px; border: 0; border-radius: 999px; padding: 0 36px; background: var(--bs-rust); color: #FFFFFF; font-family: var(--bs-font-text); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: normal; line-height: normal; cursor: pointer; box-shadow: none; margin: 0; }
body.customer-account-create form#form-validate.form-create-account button.action.submit.primary:hover { background: #9A4515; }
body.customer-account-create form#form-validate.form-create-account button.action.submit.primary span { font: inherit; color: inherit; text-transform: none; }
body.customer-account-create form#form-validate.form-create-account a.action.back { display: inline-flex; align-items: center; margin: 0; padding: 0; border: 0; background: none; font-family: var(--bs-font-text); font-size: 15px; font-weight: 700; text-decoration: none; text-transform: none; color: var(--bs-navy); }
body.customer-account-create form#form-validate.form-create-account a.action.back::before { content: "\2190"; position: static; margin: 0 6px 0 0; font-family: var(--bs-font-text); font-size: 15px; line-height: normal; color: inherit; }
body.customer-account-create form#form-validate.form-create-account a.action.back:hover { color: var(--bs-rust); }
body.customer-account-create form#form-validate.form-create-account a.action.back span { font: inherit; color: inherit; text-transform: none; }

/* validation */
body.customer-account-create form#form-validate.form-create-account div.mage-error { margin: 0; font-size: 13px; color: #B42318; }
body.customer-account-create form#form-validate.form-create-account input.mage-error, body.customer-account-create form#form-validate.form-create-account select.mage-error { border-color: #B42318; }

/* narrower screens: right column drops under the card, phones stack the fields */
@media (max-width: 960px) {
  body.customer-account-create .page-main { grid-template-columns: minmax(0, 1fr); }
  body.customer-account-create .page-main > .columns > .bs-reg-aside { grid-column: 1; grid-row: 4; max-width: 420px; margin-top: 28px; }
}
@media (max-width: 700px) {
  body.customer-account-create form#form-validate.form-create-account fieldset > .field, body.customer-account-create form#form-validate.form-create-account fieldset.address > .field:not(.company):not(.telephone):not(.street), body.customer-account-create form#form-validate.form-create-account fieldset.account > .field:has(#email_address), body.customer-account-create form#form-validate.form-create-account fieldset.account > .field.password, body.customer-account-create form#form-validate.form-create-account fieldset.account > .field.confirmation { grid-column: 1 / -1; }
}

/* measured against the design reference (tools/build-reference.php -> register.html) */
body.customer-account-create form#form-validate.form-create-account fieldset > legend.legend { margin-bottom: -10px; }
body.customer-account-create .bs-reg-sub { margin: 0 !important; }
body.customer-account-create form#form-validate.form-create-account .field.choice { min-height: 24px; }
body.customer-account-create form#form-validate.form-create-account fieldset > legend.legend { margin-bottom: -2px; }
body.customer-account-create .bs-reg-sub { font-family: var(--bs-font-text); line-height: 19px; }
body.customer-account-create form#form-validate.form-create-account fieldset > .field::before, body.customer-account-create form#form-validate.form-create-account fieldset > .field::after, body.customer-account-create form#form-validate.form-create-account fieldset > .field > .control::before, body.customer-account-create form#form-validate.form-create-account fieldset > .field > .control::after { content: none; display: none; }
body.customer-account-create form#form-validate.form-create-account fieldset > legend.legend { margin-bottom: 4px; }
body.customer-account-create #password-strength-meter.password-strength-meter { line-height: normal !important; } body.customer-account-create #password-strength-meter-label { line-height: normal; }
body.customer-account-create #password-strength-meter.password-strength-meter { height: 15px !important; line-height: 15px !important; } body.customer-account-create #password-strength-meter-label { line-height: 15px; font-family: var(--bs-font-text); }
body.customer-account-create #password-strength-meter-container { display: flex; height: 15px; line-height: 15px; overflow: visible; }
body.customer-account-create form#form-validate.form-create-account .field.choice > input { margin: 3px 3px 3px 4px; }
body.customer-account-create #password-strength-meter.password-strength-meter::before { display: block !important; content: "" !important; order: -1 !important; flex: 1 1 auto !important; height: 6px !important; width: auto !important; border: 0 !important; margin: 0 !important; position: static !important; border-radius: 999px !important; } body.customer-account-create .bs-reg-sub, body.customer-account-create .bs-reg-aside, body.customer-account-create .bs-reg-aside * { text-align: left !important; }
body.customer-account-create form#form-validate.form-create-account { position: relative; }
body.customer-account-create form#form-validate.form-create-account > .g-recaptcha { position: absolute; left: 0; bottom: 0; margin: 0 !important; padding: 0 !important; height: 0; width: 0; }
