* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: url('../img/Default.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    
    /* 背景呼吸动画 */
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        background: rgba(0, 0, 0, 0.3);
    }
    50% {
        background: rgba(0, 0, 0, 0.25);
    }
}

.container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    
    /* 进入动画 */
    animation: containerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               containerFloat 6s ease-in-out 0.8s infinite;
    
    /* 初始状态 */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* 容器淡入动画 */
@keyframes containerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 容器呼吸浮动效果 */
@keyframes containerFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.005);
    }
}

/* 元素淡入动画 */
@keyframes elementFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* iOS 风格的细微光泽 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    pointer-events: none;
    
    /* 光泽流动动画 */
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-10%);
    }
    50% {
        opacity: 1;
        transform: translateX(10%);
    }
}

.logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: rgba(18, 183, 245, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    box-shadow: 
        0 4px 16px rgba(18, 183, 245, 0.2),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    z-index: 1;
    
    /* 进入动画 */
    animation: elementFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    
    /* 光泽流动动画 */
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        border-radius: 25px;
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
        border-radius: 30px 20px 25px 30px;
    }
}

@keyframes logoShine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.logo img {
    width: 105%;
    height: 105%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    
    /* 头像悬浮动画 */
    animation: logoImageFloat 4s ease-in-out infinite;
}

@keyframes logoImageFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-2px) rotate(0.5deg) scale(1.01);
    }
    50% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    75% {
        transform: translateY(-2px) rotate(-0.5deg) scale(1.01);
    }
}

h1 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    
    /* 进入动画 */
    animation: elementFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(10px);
}

p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    
    /* 进入动画 */
    animation: elementFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s ease;
}

.input:focus {
    border-color: #12B7F5;
    box-shadow: 0 0 0 3px rgba(18, 183, 245, 0.1);
}

.btn {
    position: relative;
    display: inline-block;
    background: rgba(18, 183, 245, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: white;
    padding: 15px 40px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(18, 183, 245, 0.15),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
    z-index: 1;
    
    /* 进入动画 */
    animation: elementFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    
    /* 光泽流动动画 */
    animation: shimmer 3.5s ease-in-out infinite;
}

.btn:hover {
    background: rgba(18, 183, 245, 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(18, 183, 245, 0.25),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
}

.status {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #12B7F5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

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

/* 功能按钮组 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
    
    /* 进入动画 */
    animation: elementFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.action-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    
    /* 光泽流动动画 */
    animation: shimmer 4s ease-in-out infinite;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.action-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 380px) {
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .action-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .btn-icon {
        font-size: 20px;
    }
}
