@mixin checkout__login(
    $name-space:                  null,
    $padding:                     null,
    $background-color:            null,
    $color:                       null,
    $header-margin-bottom:        null,
    $error-message-margin-bottom: null,
    $fields-margin-bottom:        null,
    $field-margin-bottom:         null,
    $link-gutter:                 null
) {
    .#{$name-space}login {
        @include checkout__reset;
        padding: $padding;
        background-color: $background-color;
        color: $color;

        &__header {
            margin-bottom: $header-margin-bottom;
        }

        &__heading {
            margin: 0;
        }

        &__error-message {
            margin-bottom: $error-message-margin-bottom;
        }

        &__fields {
            @include checkout__clearfix;
            margin-bottom: $fields-margin-bottom;
        }

        &__email {
            display: block;
            width: 100%;
            margin-bottom: $field-margin-bottom;
        }

        &__password {
            float: left;
            width: calc(#{percentage(2/3)} - #{$field-margin-bottom});
        }

        &__submit {
            float: right;
            width: percentage(1/3);
        }

        &__forgot-password {
            display: block;
            margin: 0;

            &__input {
                display: block;
                margin-bottom: $field-margin-bottom;
            }

            &__submit {
                margin-right: $field-margin-bottom;
            }

            &__cancel {
                @include checkout__reset-button;
            }
        }

        // stylelint-disable-next-line
        &__links {}

        &__link {
            @include checkout__reset-button;
        }

        &__link:not(:last-child) {
            margin-right: $link-gutter;
        }

        // stylelint-disable-next-line
        &__footer {}

        @content;
    }
}