﻿.bs-stepper-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
}

.bs-stepper .step {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 0 auto;
}

.bs-stepper .step-trigger {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    outline: none;
    gap: 0.5rem;
    color: var(--bs-heading-color);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.375rem;
}

.bs-stepper .step-trigger:disabled,
.bs-stepper .step-trigger.disabled {
    pointer-events: none;
    opacity: 1;
}

.bs-stepper .step:not(.active):not(.crossed) .step-trigger:disabled,
.bs-stepper .step:not(.active):not(.crossed) .step-trigger.disabled {
    opacity: 0.65;
}

.bs-stepper-circle {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    background-color: rgba(var(--bs-base-color-rgb), 0.06);
    color: var(--bs-heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 500;
    margin-right: 0;
    min-width: 38px;
    min-height: 38px;
}

.bs-stepper .step.active .bs-stepper-circle {
    background-color: var(--bs-primary);
    color: var(--bs-primary-contrast);
    box-shadow: 0 0.125rem 0.375rem 0 rgba(var(--bs-primary-rgb), 0.3);
}

.bs-stepper .step:not(.active):not(.crossed) .bs-stepper-circle {
    background-color: rgba(var(--bs-base-color-rgb), 0.06);
    color: var(--bs-heading-color);
}

.bs-stepper .step.crossed .step-trigger .bs-stepper-title {
    color: var(--bs-secondary-color);
}

.bs-stepper .step.crossed .step-trigger .bs-stepper-subtitle {
    color: var(--bs-secondary-color);
}
.bs-stepper .bs-stepper-header .step.crossed + .line .icon-base {
    color: var(--bs-body-color);
}
.bs-stepper .step.crossed .step-trigger .bs-stepper-circle {
    background-color: rgba(var(--bs-primary-rgb), 0.16);
    color: var(--bs-primary);
    box-shadow: none;
}

.bs-stepper-label {
    display: inline-grid;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    row-gap: 0.18rem;
    color: var(--bs-heading-color);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.375rem;
}

.bs-stepper-title {
    color: var(--bs-heading-color);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-stepper-subtitle {
    color: var(--bs-body-color);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bs-stepper .line {
    flex: 0;
    margin: 0;
    background-color: transparent;
    min-block-size: auto;
    min-inline-size: auto;
}

.bs-stepper .line .icon-base {
    color: var(--bs-body-color);
}

.bs-stepper .step.crossed + .line .icon-base {
    color: var(--bs-body-color);
}

@media (min-width: 992px) {
    .bs-stepper:not(.vertical):not(.wizard-icons) .bs-stepper-header {
        gap: 1.25rem;
    }
}

/* Content transitions */
.bs-stepper-content .content {
    display: none;
}

    .bs-stepper-content .content.active {
        display: block;
        -webkit-animation: fadeIn 0.3s ease-in-out;
        animation: fadeIn 0.3s ease-in-out;
    }

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.authentication-wrapper.authentication-basic .authentication-inner {
    max-inline-size: 550px;
}

.registration-card {
    width: 100%;
    max-width: 550px;
    margin-inline: auto;
}

/* Responsive for small screens */
@media (max-width: 480px) {
    .authentication-wrapper.authentication-basic .authentication-inner {
        max-inline-size: 100%;
    }

    .registration-card {
        max-width: 100%;
    }

    .bs-stepper-header {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .bs-stepper .step {
        flex: 1 1 0;
        margin-bottom: 0;
        min-width: 0;
    }

    .bs-stepper .line {
        display: block;
    }

    .bs-stepper-circle {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
    }
}

.form-control-validation input:invalid {
    border-color: red;
}
