/* Mac主题风格液态玻璃CSS */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 背景样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: rgb(73, 70, 92);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 背景覆盖层 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

/* 液态玻璃容器样式 */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

/* 容器内部光泽效果 */
.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.glass-container:hover::before {
    left: 100%;
}

/* 标题样式 */
.glass-container h1 {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 输入组样式 */
.input-group {
    position: relative;
}

.input-group label {
    display: block;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* 输入框样式 */
.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 输入框聚焦效果 */
.input-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 输入框占位符样式 */
.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 按钮悬停效果 */
.btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 38, 135, 0.3);
}

/* 按钮激活效果 */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.3);
}

/* 主要按钮样式 */
.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

/* 文本链接样式 */
.text-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.text-link a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.text-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.text-link a:hover {
    color: rgba(255, 255, 255, 1);
}

.text-link a:hover::after {
    width: 100%;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.checkbox-group label {
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .glass-container {
        margin: 20px;
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .glass-container h1 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .input-group input {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    

}

@media (max-width: 480px) {
    .glass-container {
        padding: 25px 20px;
    }
    
    .glass-container h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .input-group input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: spin 1s ease-in-out infinite;
}

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

/* 成功/错误消息样式 */
.message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表单动画 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-container {
    animation: slideUp 0.6s ease-out;
}

/* 输入框标签动画 */
.input-group:focus-within label {
    color: rgba(255, 255, 255, 1);
    transform: translateX(5px);
}
