@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

@keyframes spin {
    to { transform: rotate(360deg); }
}

html, body {
    width: 100%;
    height: 100%;
}

* {
    margin: 0;
}

body {
    background: #F7F6F4;
    color: #1F2A33;
}

.migrated-to-new-domain {
    margin: 80px 16px 16px;

    .content {
        display: flex;
        max-width: 480px;
        margin: 0 auto;
        padding: 32px 24px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        align-self: center;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.10);
        background: #FFF;
        text-align: center;
        box-shadow: 0 12px 16px -4px rgba(0, 0, 0, 0.08),
            0 4px 6px -2px rgba(0, 0, 0, 0.03),
            0 2px 2px -1px rgba(0, 0, 0, 0.04);

        .totalmed-logo {
            padding-bottom: 16px;

            svg {
                height: auto;
                width: 100%;
            }
        }

        h1 {
            color: #1F2A33;
            font-family: Manrope, sans-serif;
            font-size: 24px;
            font-weight: 500;
            line-height: 32px;
        }

        p {
            color: #6E6A65;
            font-family: Manrope, sans-serif;
            font-size: 16px;
            line-height: 24px;
        }

        .content-footer {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 32px;
            align-self: stretch;

            button {
                position: relative;
                overflow: hidden;
                cursor: pointer;
                width: 100%;
                display: flex;
                padding: 12px 18px;
                justify-content: center;
                align-items: center;
                gap: 6px;
                border-radius: 10px;
                border: 2px solid rgba(255, 255, 255, 0.12);
                background: #2953A8;
                color: #FFF;
                font-family: Manrope, sans-serif;
                font-size: 16px;
                font-weight: 600;
                line-height: 24px;
                box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset,
                    0 -2px 0 0 rgba(0, 0, 0, 0.05) inset,
                    0 1px 2px 0 rgba(0, 0, 0, 0.05);
                &::before {
                    content: '';
                    position: absolute;
                    inset: 0;
                    width: calc(var(--fill-pct, 0) * 1%);
                    background: #213557;
                    opacity: 0;
                    transition: opacity 0.2s;
                }

                &:hover::before {
                    opacity: 1;
                }

                span, svg {
                    position: relative;
                    z-index: 1;
                }

                #btn-spinner {
                    display: none;
                }

                #btn-label {
                    padding: 0 2px;
                }

                &.transitioning {
                    background: #1F2A33;
                    transition: none;
                    pointer-events: none;

                    #btn-spinner {
                        display: block;
                        animation: spin 0.8s linear infinite;
                    }
                }
            }

            .content-footer-text {
                display: flex;
                padding-top: 24px;
                justify-content: center;
                align-items: flex-start;
                gap: 6px;
                align-self: stretch;
                border-top: 1px solid rgba(0, 0, 0, 0.10);
                color: #6E6A65;
                font-family: Manrope, sans-serif;
                font-size: 14px;
                line-height: 20px;

                a {
                    text-decoration: none;
                    color: #2760DF;
                    font-weight: 600;

                    &:hover {
                        color: #1E489F;
                    }
                }
            }
        }
    }

    hr {
        width: 100%;
        border: 1px solid black;
    }
}