/* Customer Create Account page - design only, no functional changes.
   The real Magento registration form (Magento_Customer::form/register.phtml,
   block "customer_form_register") is left untouched - only styled via these
   selectors, all scoped under body.customer-account-create. */

.customer-account-create .breadcrumbs {
    display: block !important;
    padding: 14px 0;
    background-color: #f3f1f2;
}

.customer-account-create .breadcrumbs .items {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 14px;
}

.customer-account-create .breadcrumbs .item {
    color: #6b7280;
}

.customer-account-create .breadcrumbs .item a {
    color: #da090e;
    text-decoration: none;
}

.customer-account-create .breadcrumbs .item strong {
    font-weight: 400;
    color: #6b7280;
}

.customer-account-create .page-title-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 28px 15px 24px;
}

.customer-account-create .page-title-wrapper .page-title {
    margin: 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #101010;
}

.customer-account-create .messages {
    max-width: 1170px;
    margin: 0 auto 24px;
    padding: 0 15px;
}

/* Full-bleed gray section behind both columns - background lives on this wrapper so it can
   span 100% of the viewport (this page's outer ".container" caps at max-width:1170px, so the
   wrapper must break out of it via the standard "100vw / -50vw+50%" full-bleed pattern),
   matching the same treatment used on the Login page for visual consistency. */
.customer-account-create .create-account-bleed-wrap {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #f3f1f2;
}

/* Centered content column inside the full-bleed wrapper */
.customer-account-create .create-account-container {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 15px 54px;
    box-sizing: border-box;
}

.customer-account-create .create-account-left {
    flex: 1 1 62%;
    min-width: 0;
}

.customer-account-create .create-account-right {
    flex: 1 1 38%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card base: white background, colored 2px border, no fill */
.customer-account-create .cl-card,
.customer-account-create .create-account-left {
    background-color: #ffffff;
    border-radius: 6px;
    box-sizing: border-box;
}

.customer-account-create .create-account-left {
    border: 2px solid #da090e;
}

.customer-account-create .cl-card-new {
    border: 2px solid #444444;
}

.customer-account-create .cl-card-title {
    margin: 0 !important;
    padding: 24px 24px 24px !important;
    border-bottom: 1px solid #eeeeee;
}

.customer-account-create .cl-card-title strong {
    display: block;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #101010;
}

.customer-account-create .cl-card-subtitle {
    margin: 10px 0 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b7280;
}

.customer-account-create .cl-card-content {
    padding: 24px 24px 24px;
}

/* The real registration form sits directly below the header band, inside the card */
.customer-account-create .form-create-account {
    padding: 24px 24px 24px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
}

/* Hide Magento's default fieldset legends ("Personal Information" / "Sign-in Information") -
   the card header already introduces the form; field labels carry the rest. */
.customer-account-create .form-create-account .legend,
.customer-account-create .form-create-account .fieldset > br {
    display: none;
}

.customer-account-create .form-create-account .fieldset {
    /* A legacy _bonus-page.less rule (the old pre-redesign "CREATE ACCOUNT" styles) floats
       ".create.info"/".create.account" into two 48.8%-wide, 394px-min-height, #fafafa boxes -
       neutralize it all, this design stacks the fieldsets as a single plain column. */
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    margin: 0 0 8px;
}

.customer-account-create .form-create-account::after {
    content: '';
    display: block;
    clear: both;
}

.customer-account-create .fieldset.create.info .field-name-firstname,
.customer-account-create .fieldset.create.info .field-name-lastname {
    float: none !important;
    width: 100% !important;
}

/* First/Last name side by side */
.customer-account-create .fieldset.create.info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}

.customer-account-create .fieldset.create.info .field-name-firstname,
.customer-account-create .fieldset.create.info .field-name-lastname {
    grid-column: span 1;
}

.customer-account-create .fieldset.create.info .field.choice.newsletter {
    grid-column: 1 / -1;
}

.customer-account-create .form-create-account .field {
    margin: 0 0 20px;
    box-sizing: border-box;
}

.customer-account-create .form-create-account .field .label {
    /* A generic "label, .label { font-weight:500 !important; font-size:100% !important }"
       legacy rule in _general.less needs !important here to be overridden. */
    display: block;
    margin: 0 0 11px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    color: #101010;
}

.customer-account-create .form-create-account .field .label span {
    display: inline;
}

.customer-account-create .form-create-account .field.required > .label::after,
.customer-account-create .form-create-account .field._required > .label::after {
    content: '*';
    color: #da090e;
    margin-left: 2px;
}

.customer-account-create .form-create-account .control {
    position: relative;
}

.customer-account-create .form-create-account input.input-text,
.customer-account-create .form-create-account select {
    width: 100%;
    height: 42px;
    padding: 0 16px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 15px;
    color: #101010;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.customer-account-create .form-create-account input.input-text::placeholder {
    color: #9ca3af;
}

/* Newsletter checkbox */
.customer-account-create .field.choice.newsletter {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
}

.customer-account-create .field.choice.newsletter .checkbox {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    accent-color: #da090e;
    cursor: pointer;
}

.customer-account-create .field.choice.newsletter .label {
    margin: 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #101010;
    cursor: pointer;
}

/* "Allow remote shopping assistance" opt-in checkbox (Magento_LoginAsCustomerAssistance) -
   same treatment as the newsletter checkbox, plus its help tooltip trigger. */
.customer-account-create .fieldset.create.info .field.choice {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.customer-account-create .fieldset.create.info .field.choice .checkbox {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    accent-color: #da090e;
    cursor: pointer;
}

.customer-account-create .fieldset.create.info .field.choice .label {
    margin: 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #101010;
    cursor: pointer;
}

.customer-account-create .field-tooltip.toggle {
    position: relative;
    margin-left: 8px;
}

.customer-account-create .field-tooltip-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    cursor: pointer;
}

.customer-account-create .field-tooltip-action::before {
    content: '?';
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.customer-account-create #tooltip-label {
    display: none;
}

.customer-account-create .field-tooltip-content {
    display: none;
    position: absolute;
    z-index: 5;
    top: 26px;
    left: 0;
    width: 240px;
    padding: 12px 14px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 13px;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(16, 16, 16, 0.12);
}

.customer-account-create .field-tooltip.toggle._active .field-tooltip-content {
    display: block;
}

/* Password strength meter */
.customer-account-create #password-strength-meter-container {
    margin-top: 10px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 13px;
    color: #6b7280;
}

.customer-account-create .password-strength-meter {
    position: relative;
    padding: 6px 0 6px 14px;
}

.customer-account-create .password-strength-meter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
}

.customer-account-create .password-strength-meter-1::before { background-color: #da090e; }
.customer-account-create .password-strength-meter-2::before { background-color: #f59e0b; }
.customer-account-create .password-strength-meter-3::before { background-color: #eab308; }
.customer-account-create .password-strength-meter-4::before { background-color: #22c55e; }

/* Show Password toggle (Magento_Customer/js/show-password, shared for both password fields) */
.customer-account-create .field.choice[data-bind*="showPassword"] {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: -6px 0 20px;
}

.customer-account-create .field.choice[data-bind*="showPassword"] .cl-eye-checkbox {
    position: static;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    opacity: 1;
    cursor: pointer;
}

.customer-account-create .field.choice[data-bind*="showPassword"] .cl-eye-toggle {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    color: #6b7280;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.customer-account-create .field.choice[data-bind*="showPassword"] .cl-eye-toggle svg {
    width: 18px;
    height: 18px;
}

.customer-account-create .cl-eye-icon-hide {
    display: none;
}

.customer-account-create .cl-eye-checkbox:checked ~ .cl-eye-toggle .cl-eye-icon-show {
    display: none;
}

.customer-account-create .cl-eye-checkbox:checked ~ .cl-eye-toggle .cl-eye-icon-hide {
    display: block;
}

.customer-account-create .field.choice[data-bind*="showPassword"] .cl-visually-hidden {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
}

/* Actions row - also neutralizes the legacy _bonus-page.less
   ".form-create-account .actions-toolbar" (padding/background/border) box */
.customer-account-create .actions-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 24px;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
}

.customer-account-create .actions-toolbar .primary,
.customer-account-create .actions-toolbar .secondary {
    margin: 0;
}

.customer-account-create .actions-toolbar .action.submit.primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    height: 46px !important;
    padding: 0 28px !important;
    box-sizing: border-box;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 700;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: #ffffff !important;
    background-color: #da090e !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 !important;
}

.customer-account-create .actions-toolbar .action.submit.primary:hover {
    background-color: #b6070c !important;
}

.customer-account-create .actions-toolbar .action.back {
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
}

.customer-account-create .actions-toolbar .action.back:hover {
    color: #da090e;
    text-decoration: underline;
}

/* Validation / error messages */
.customer-account-create .fieldset > .field-error,
.customer-account-create .field .control .mage-error {
    margin-top: 6px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 13px;
    color: #da090e;
}

.customer-account-create .field-error input.input-text,
.customer-account-create input.input-text.mage-error {
    border-color: #da090e;
}

.customer-account-create .message.error,
.customer-account-create .message.success {
    max-width: 1170px;
    margin: 0 auto 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
}

/* Right column: "Why Join Us?" benefits list */
.customer-account-create .cl-benefits-lead {
    margin: 0 0 20px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #374151;
}

.customer-account-create .cl-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.customer-account-create .cl-benefits-list li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 30px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #374151;
}

.customer-account-create .cl-benefits-list li:last-child {
    margin-bottom: 0;
}

.customer-account-create .cl-benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23da090e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Right column: "Why Shop With Us?" card */
.customer-account-create .cl-card-why {
    padding: 24px 24px 24px;
}

.customer-account-create .cl-why-title {
    margin: 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #101010;
}

.customer-account-create .cl-why-underline {
    display: block;
    width: 56px;
    height: 3px;
    margin: 12px 0 24px;
    background-color: #da090e;
}

.customer-account-create .cl-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
    column-gap: 20px;
}

.customer-account-create .cl-why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.customer-account-create .cl-why-item .fa {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 22px;
    color: #101010;
}

.customer-account-create .cl-why-item-title {
    margin: 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #101010;
}

.customer-account-create .cl-why-item-sub {
    margin: 2px 0 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 13px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 991px) {
    .customer-account-create .create-account-container {
        flex-direction: column;
    }

    .customer-account-create .create-account-left,
    .customer-account-create .create-account-right {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .customer-account-create .page-title-wrapper .page-title {
        font-size: 24px;
    }

    .customer-account-create .cl-card-title,
    .customer-account-create .cl-card-content,
    .customer-account-create .form-create-account,
    .customer-account-create .cl-card-why {
        padding-left: 20px;
        padding-right: 20px;
    }

    .customer-account-create .fieldset.create.info {
        grid-template-columns: 1fr;
    }

    .customer-account-create .actions-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-account-create .actions-toolbar .action.submit.primary {
        width: 100% !important;
    }

    .customer-account-create .cl-why-grid {
        grid-template-columns: 1fr;
    }
}
