.bsmm-auth-modal {
    --primary: #20a7ee;
    --navy: #1f2d3d;
    --ink: #304b65;
    --muted: #6e8193;
    --faint: #9fb0bf;
    --line: #e3ecf2;
    --tint: #f4f8fb;
    width: 100%;
    font-family: Poppins, system-ui, sans-serif;
}

.bsmm-auth-modal .m-x {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.bsmm-auth-head h3 small {
    text-transform: none;
}

.bsmm-auth-body {
    padding: 20px 22px 22px;
}

.bsmm-auth-pane[hidden] {
    display: none;
}

.bsmm-auth-modal .authtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--tint);
}

.bsmm-auth-modal .authtabs button {
    flex: 1;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.bsmm-auth-modal .authtabs button.on {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(48, 75, 101, .12);
}

.bsmm-auth-modal .fld {
    margin-bottom: 13px;
}

.bsmm-auth-modal .fld label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.bsmm-auth-modal .fld label.fld-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bsmm-auth-modal .fld label a,
.bsmm-auth-modal .auth-foot a {
    color: var(--primary);
    font-weight: 600;
}

.bsmm-auth-modal .fld input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: #fbfdff;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
}

.bsmm-auth-modal .fld input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(32, 167, 238, .12);
}

.bsmm-auth-modal .fld input[aria-invalid="true"] {
    border-color: #e04b4b;
    background: #fffafa;
}

.bsmm-auth-modal .fld input[aria-invalid="true"]:focus {
    border-color: #e04b4b;
    box-shadow: 0 0 0 4px rgba(224, 75, 75, .12);
}

.bsmm-auth-modal .fld .input-error,
.bsmm-auth-modal .error-notif,
.bsmm-auth-modal .success-notif {
    margin-top: 6px;
    color: #e04b4b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.bsmm-auth-modal .fld .input-error {
    position: static;
    display: none;
    width: auto;
    min-height: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.bsmm-auth-modal .fld .input-error.is-visible,
.bsmm-auth-modal .fld .input-error:not(:empty),
.bsmm-auth-modal .error-notif:not(:empty),
.bsmm-auth-modal .success-notif:not(:empty) {
    display: block;
}

.bsmm-auth-modal .success-notif {
    color: #15935f;
}

.bsmm-auth-modal .auth-alt {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--faint);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bsmm-auth-modal .auth-alt::before,
.bsmm-auth-modal .auth-alt::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.bsmm-auth-modal .btn-google,
.bsmm-auth-modal .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
}

.bsmm-auth-modal .btn-google {
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
}

.bsmm-auth-modal .btn-google:hover {
    background: var(--tint);
}

.bsmm-auth-modal .btn-google svg {
    width: 18px;
    height: 18px;
}

.bsmm-auth-modal .btn--pri {
    position: relative;
    min-height: 48px;
    border: 0;
    background: var(--primary);
    color: #fff;
}

.bsmm-auth-modal .btn--pri[aria-busy="true"] {
    pointer-events: none;
    color: transparent;
}

.bsmm-auth-modal .btn--pri[aria-busy="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bsmm-auth-spin .75s linear infinite;
}

@keyframes bsmm-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.bsmm-auth-modal .auth-foot {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

.bsmm-auth-modal .auth-foot span {
    margin-right: 4px;
}

.bsmm-auth-modal .bsmm-auth-confirm {
    margin: 0 0 13px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
}

.bsmm-auth-modal .bsmm-auth-confirm .auth-modal-current-user-email,
.bsmm-auth-modal .bsmm-auth-confirm #confirmation_email {
    color: var(--primary);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.bsmm-auth-modal.is-verifying .authtabs,
.bsmm-auth-modal.is-verifying .auth-alt,
.bsmm-auth-modal.is-verifying .btn-google,
.bsmm-auth-modal.is-verifying .auth-foot {
    display: none;
}

.bsmm-auth-modal.is-password-reset .authtabs {
    display: none;
}

.bsmm-auth-modal.is-register-details .auth-alt,
.bsmm-auth-modal.is-register-details .btn-google {
    display: none;
}

.bsmm-auth-modal.is-verifying .bsmm-auth-head {
    position: relative;
    justify-content: center;
}

.bsmm-auth-modal.is-password-reset .bsmm-auth-head {
    position: relative;
    justify-content: center;
}

.bsmm-auth-modal.is-verifying .bsmm-auth-head h3 {
    padding: 0 42px;
    text-align: center;
}

.bsmm-auth-modal.is-password-reset .bsmm-auth-head h3 {
    padding: 0 42px;
    text-align: center;
}

.bsmm-auth-modal.is-verifying .bsmm-auth-head .m-x {
    position: absolute;
    right: 16px;
}

.bsmm-auth-modal.is-password-reset .bsmm-auth-head .m-x {
    position: absolute;
    right: 16px;
}

.bsmm-auth-modal .login__resend-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 14px;
    color: var(--muted);
    font-size: 12.5px;
}

.bsmm-auth-modal .login__resend-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.bsmm-auth-modal .bsmm-auth-back {
    display: block;
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
}

.bsmm-auth-modal .bsmm-auth-reset-form .bsmm-auth-back {
    margin-top: 28px;
    font-size: 14px;
}

.bsmm-auth-modal .d-none {
    display: none !important;
}

@media (max-width: 640px) {
    .bsmm-auth-body {
        padding: 18px;
    }

}
