* {
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    color: #000;
}

:root {
    --clr-purple: #d500f9;
    --clr-lightblue: #00ccff;
    --clr-bg:#f2f0f5;
}


#loader-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

#loader-loading img {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes fadeLoader {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.empty,
.full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty {
    animation: fadeLoader 0.5s ease-in forwards;
}

.full {
    /* animation: fillUp 2s cubic-bezier(0.65, 0.05, 0.36, 1) forwards; */
    animation: fillUp 2s linear forwards;
}

@keyframes fillUp {

    0%,
    100% {
        clip-path: polygon(0 100%, 20% 100%, 40% 100%, 60% 100%, 80% 100%, 100% 100%, 100% 100%, 0% 100%);
    }

    25% {
        clip-path: polygon(0 76%, 16% 83%, 38% 84%, 59% 74%, 80% 73%, 100% 81%, 100% 100%, 0% 100%);
    }

    50% {
        clip-path: polygon(0 50%, 18% 44%, 38% 45%, 56% 52%, 80% 53%, 100% 47%, 100% 100%, 0% 100%);
    }

    75% {
        clip-path: polygon(0 24%, 19% 31%, 41% 33%, 59% 25%, 79% 21%, 100% 26%, 100% 100%, 0% 100%);
    }

    100% {
        clip-path: polygon(0 0, 26% 0, 48% 0, 67% 0, 85% 0, 100% 0, 100% 100%, 0% 100%);
    }

}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--clr-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0;
    /* overflow: hidden; */
    overflow: auto;
}

.wrapper {
    width: 300px;
    background: #ffffff;
    border-radius: 20px;
    padding: 15px 15px 36px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    /* backdrop-filter: blur(3px); */
    /* border-width: 6px; */
    opacity: 0;
    /* box-shadow: 0px 0px 7px 6px rgba(168, 113, 50, 0.79); */
    /* 添加过渡效果 */
    transition: opacity 0.6s ease-in-out;
    overflow: hidden;
}

.fade-in {
    opacity: 1;
    /* 设置透明度为1，开始淡入 */
}

.wrapper::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 150%;
    background: linear-gradient(#00ccff, #d500f9);
    animation: rotate 3s linear infinite;
    transition: width 1s ease-in-out;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 当鼠标悬停在 .wrapper 或特定按钮上时的样式 */
.wrapper:hover::before,
.button-class:hover+.wrapper::before {
    width: 600px;
}

.wrapper::after {
    content: '';
    position: absolute;
    background: #f2f0f5;
    inset: 6px;
    border-radius: 20px;
}

.wrapper h1,
h2,
h3,
h4,
h5 {
    z-index: 2;
    margin-bottom: 15px;
}

.logo-image {
    z-index: 2;
    width: 96px;
    margin-top: 36px;
    margin-bottom: 12px;
    /* box-shadow: 3px 3px 9px rgb(20, 20, 20, 0.4) */
    transition: transform 0.3s;
}

.logo-image:hover {
    transform: translateY(-3px);
}

.bindingYoutubebtn {
    z-index: 2;
    width: 150px;
    margin: 10px;
    /* margin-bottom: 36px; */
    background-color: var(--clr-lightblue);
    color: #000;
    border: none;
    padding: 0.5em 1em;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
    /* 平滑过渡效果 */
}

.bindingYoutubebtn:disabled {
    color: #cccccc;
    background-color: #7c4286;
    /* border-color: #aaaaaa; */
}

.bindingYoutubebtn:hover {
    background-color: var(--clr-purple);
    color: #fff;
    transform: translateY(-3px);
}

.error-message {
    z-index: 2;
    color: var(--clr-purple);
    width: 210px;
    font-size: 12px;
    /* text-align: center; */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.success-message {
    z-index: 2;
    /* margin: 20px; */
    width: 210px;
    font-size: 14px;
    /* text-align: center; */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: top;
    margin-right: 0.36em;
    margin-top: 1px;
    border: 2px solid rgba(200, 200, 200, 0.3); /* 半透明的灰白色 */
    border-top: 2px solid rgba(255, 255, 255, 0.8); /* 半透明的白色 */
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.g_id_signin {
    z-index: 2;
    margin-bottom: 10px;
}
