/* Customer Login page - design only, no functional changes */

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

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

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

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

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

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

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

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

/* Full-bleed gray section behind both cards (background lives here, spanning 100% of the
   viewport - measured from the reference, the gray band runs edge-to-edge, not just within
   the centered content column). */
.customer-account-login .login-bleed-wrap {
    /* This page's outer ".container" caps at max-width:1170px, so this wrapper must break out
       of it to reach full viewport width - the standard "100vw / -50vw+50%" full-bleed pattern. */
    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-login .login-container {
    display: flex;
    align-items: stretch;
    gap: 28px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 15px 54px;
}

.customer-account-login .login-container::before,
.customer-account-login .login-container::after {
    display: none;
}

.customer-account-login .login-container > .block {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

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

.customer-account-login .cl-card-login {
    border: 2px solid #da090e;
}

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

.customer-account-login .cl-card-title {
    /* A legacy _bonus-page.less rule (".login-container .block-customer-login .block-title")
       forces padding:0 on this exact element with higher specificity - override it explicitly. */
    margin: 0 !important;
    padding: 24px 24px 24px !important;
    border-bottom: 1px solid #eeeeee;
}

.customer-account-login .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-login .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-login .cl-card-content {
    padding: 24px 24px 24px;
}

/* Hide the auto-generated "* Required Fields" legend text - not shown in the design */
.customer-account-login .fieldset[data-hasrequired]::after {
    display: none;
}

/* Form fields (shared by login + signup mini-form) */
.customer-account-login .cl-card .field {
    margin: 0 0 20px;
}

.customer-account-login .cl-card .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-login .cl-card .field .label span {
    display: inline;
}

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

.customer-account-login .cl-card .control {
    position: relative;
}

.customer-account-login .cl-card input.input-text {
    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-login .cl-card input.input-text::placeholder {
    color: #9ca3af;
}

.customer-account-login .cl-password-control input.input-text {
    padding-right: 46px;
}

/* Eye toggle */
.customer-account-login .cl-eye-checkbox {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.customer-account-login .cl-eye-toggle {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    color: #6b7280;
    cursor: pointer;
    pointer-events: none;
}

.customer-account-login .cl-eye-toggle svg {
    width: 20px;
    height: 20px;
}

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

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

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

.customer-account-login .cl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* "Remember Me" checkbox (Magento_Persistent) - only renders when Persistent Shopping Cart
   is enabled in Admin. Kept styled/scoped so it degrades gracefully either way. */
.customer-account-login #remember-me-box.field.choice {
    display: flex;
    align-items: center;
    margin: 0 0 20px;
}

.customer-account-login #remember-me-box .checkbox {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    accent-color: #da090e;
    cursor: pointer;
}

.customer-account-login #remember-me-box .label {
    margin: 0;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #101010;
    cursor: pointer;
}

.customer-account-login #remember-me-box .tooltip.wrapper {
    display: none;
}

/* Actions row: Sign In / Create an Account button (auto-width) + secondary link, same row */
.customer-account-login .cl-actions-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 0;
}

/* The field directly before the actions row (password on the login card) sits closer to the
   button than the standard field-to-field gap - measured from the reference. A legacy
   yttheme.css rule (".fieldset > .field") sets margin-bottom:20px !important, so this needs
   !important too to win. */
.customer-account-login .fieldset.login .field.password {
    margin-bottom: 12px !important;
}

.customer-account-login .cl-actions-toolbar .primary {
    flex: 0 0 auto;
    margin: 0;
}

.customer-account-login .cl-actions-toolbar .secondary {
    margin: 0;
}

.customer-account-login .cl-btn {
    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;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    margin: 0 !important;
}

.customer-account-login .cl-btn-primary {
    color: #ffffff !important;
    background-color: #da090e !important;
}

.customer-account-login .cl-btn-primary:hover {
    background-color: #b6070c !important;
}

.customer-account-login .cl-btn-dark {
    color: #ffffff !important;
    background-color: #262626 !important;
}

.customer-account-login .cl-btn-dark:hover {
    background-color: #000000 !important;
}

.customer-account-login .cl-forgot-link {
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #da090e;
    text-decoration: none;
}

.customer-account-login .cl-forgot-link:hover {
    text-decoration: underline;
}

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

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

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

/* New customers benefits list */
.customer-account-login .cl-benefits-lead {
    margin: 0 0 20px;
    font-family: 'Poppins', Rubik, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #374151;
}

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

.customer-account-login .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-login .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;
}

/* Trust badges - single row below both cards */
.customer-account-login .cl-trust-badges {
    padding: 26px 0;
    background-color: #ffffff;
}

.customer-account-login .cl-trust-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.customer-account-login .cl-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-account-login .cl-trust-item .fa {
    font-size: 26px;
    color: #101010;
}

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

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

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

    .customer-account-login .cl-trust-row {
        flex-wrap: wrap;
        row-gap: 24px;
    }

    .customer-account-login .cl-trust-item {
        flex: 1 1 45%;
    }
}

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

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

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

    .customer-account-login .cl-btn {
        width: 100% !important;
    }

    .customer-account-login .cl-trust-item {
        flex: 1 1 100%;
    }
}
