.customer-account-login .page-main,
.customer-account-forgotpassword .page-main {
    padding-top: 36px;
    padding-bottom: 56px;
}

.customer-account-login .login-container,
.customer-account-forgotpassword .column.main {
    width: 100%;
}

.customer-account-forgotpassword .column.main {
    padding-top: 40px;
}

.mastiff-customer-auth {
    box-sizing: border-box;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #dce3e9;
    background: #fff;
    color: #172638;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    box-shadow: 0 12px 30px rgba(23, 38, 56, .08);
}

.mastiff-customer-auth__title {
    margin: 0 0 26px;
    color: #172638;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.mastiff-customer-auth__intro {
    margin: -10px 0 24px;
    color: #526071;
    font-size: 14px;
    line-height: 1.6;
}

.mastiff-customer-auth .mastiff-customer-auth__form {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
}

.mastiff-customer-auth .fieldset {
    margin: 0;
}

.mastiff-customer-auth .field {
    margin: 0 0 20px;
}

.mastiff-customer-auth .field > .label {
    display: block;
    margin: 0 0 7px;
    color: #172638;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.mastiff-customer-auth .field.required > .label::after {
    margin-left: 4px;
    color: #c43d3d;
}

.mastiff-customer-auth .input-text {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 10px 13px;
    border: 1px solid #cbd5de;
    border-radius: 4px;
    background: #fff;
    color: #172638;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
}

.mastiff-customer-auth .input-text:focus {
    border-color: #155b86;
    box-shadow: 0 0 0 3px rgba(21, 91, 134, .14);
}

.mastiff-customer-auth__remember {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mastiff-customer-auth__remember .checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
}

.mastiff-customer-auth__remember > .label {
    margin: 0;
    font-weight: 400;
}

.mastiff-customer-auth__links {
    margin: -4px 0 22px;
}

.mastiff-customer-auth a {
    color: #155b86;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mastiff-customer-auth__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
}

.mastiff-customer-auth__actions::before,
.mastiff-customer-auth__actions::after {
    display: none !important;
}

.mastiff-customer-auth__actions .primary,
.mastiff-customer-auth__actions .secondary {
    float: none;
    margin: 0 !important;
}

.customer-account-forgotpassword .mastiff-customer-auth__form > .fieldset {
    margin: 0 0 24px !important;
}

.customer-account-forgotpassword .mastiff-customer-auth__actions {
    justify-content: flex-start;
    gap: 24px;
}

.mastiff-customer-auth__actions .secondary {
    display: block !important;
}

.mastiff-customer-auth__actions .mastiff-customer-auth__back {
    display: inline-block !important;
}

.mastiff-customer-auth__actions .action.primary {
    min-width: 150px;
    min-height: 44px;
    padding: 10px 18px !important;
    border: 1px solid #155b86 !important;
    border-radius: 5px;
    background: #155b86 !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none !important;
    box-shadow: none !important;
}

.mastiff-customer-auth__actions .action.primary:hover,
.mastiff-customer-auth__actions .action.primary:focus {
    border-color: #0f476a !important;
    background: #0f476a !important;
    color: #fff !important;
}

.mastiff-customer-auth__actions .secondary .action {
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #155b86 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.mastiff-customer-auth :where(input, button, a):focus-visible {
    outline: 3px solid #2684bc;
    outline-offset: 3px;
}

/* Order confirmation and the empty cart share the account form surface. */
body.checkout-onepage-success .page-main,
body.checkout-cart-index:has(.mastiff-cart-empty) .page-main {
    padding-top: 0;
    padding-bottom: 56px;
}

body.checkout-onepage-success .column.main,
body.checkout-cart-index:has(.mastiff-cart-empty) .column.main {
    width: 100%;
    padding-top: 40px;
}

body.checkout-cart-index:has(.mastiff-cart-empty) .page-title-wrapper {
    display: none;
}

.mastiff-checkout-result {
    text-align: left;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.mastiff-checkout-result p {
    margin: 0 0 20px;
    color: #526071;
    font-size: 14px;
    line-height: 1.65;
}

.mastiff-checkout-result .mastiff-checkout-result__order {
    color: #172638;
}

.mastiff-checkout-result .actions-toolbar {
    margin-top: 24px;
}

.mastiff-checkout-result .action.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: auto;
    text-decoration: none;
}

.mastiff-checkout-result #registration > br {
    display: none;
}

.mastiff-checkout-result #registration > div:has(> .action) {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dce3e9;
}

.mastiff-checkout-result #registration .action.primary {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #155b86;
    border-radius: 5px;
    background: #fff;
    color: #155b86;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    box-shadow: none;
}

.mastiff-checkout-result #registration .action.primary:hover {
    background: #f0f6fa;
}

@media (max-width: 600px) {
    body.checkout-onepage-success .column.main,
    body.checkout-cart-index:has(.mastiff-cart-empty) .column.main {
        padding-top: 24px;
    }

    body.checkout-onepage-success .page-main,
    body.checkout-cart-index:has(.mastiff-cart-empty) .page-main {
        padding-bottom: 36px;
    }

    .mastiff-checkout-result #registration .action.primary {
        width: 100%;
    }

    .customer-account-login .page-main,
    .customer-account-forgotpassword .page-main {
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .mastiff-customer-auth {
        padding: 24px 20px;
    }

    .mastiff-customer-auth__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mastiff-customer-auth__actions .primary,
    .mastiff-customer-auth__actions .secondary,
    .mastiff-customer-auth__actions .action.primary {
        width: 100%;
    }

    .mastiff-customer-auth__actions .secondary {
        text-align: center;
    }
}
