/* 
   UI 动效与视觉增强 - 极致平滑 & 硬件加速
   优化重点：点击穿透修复、层级修正、极致流畅
*/

:root {
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-main: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 1. 全局交互修正 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 2. 内容层级修正 */
.header, .main-content, .modal {
    position: relative;
    z-index: 10;
}

/* 3. 核心容器渲染隔离 (解决卡顿) */
.create-task-box, .task-item, .modal-content, .auth-box, .task-toolbar {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    contain: layout;
}

/* 4. 登录界面布局强制修复 */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    width: 100%;
}

.auth-box {
    width: 100%;
    max-width: 420px !important;
    padding: 40px !important;
    border-radius: 24px !important;
}

.form-group-fancy {
    margin-bottom: 20px !important;
    width: 100% !important;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #f97316;
    z-index: 5;
    pointer-events: none;
}

.input-with-icon input {
    width: 100% !important;
    padding: 14px 15px 14px 45px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 16px !important;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    border-color: #f97316 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    outline: none;
}

.btn-fancy-auth {
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border: none !important;
    border-radius: 12px !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 20; /* 确保按钮在最最最上层 */
}

.btn-fancy-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4) !important;
    filter: brightness(1.1);
}

.btn-fancy-auth:active {
    transform: translateY(0) scale(0.98);
}

/* 5. 品牌 Logo 恢复 */
.brand-wrapper { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.brand-logo {
    position: relative; width: 42px; height: 42px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white; box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}
.logo-glow {
    position: absolute; inset: -2px; background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 14px; filter: blur(10px); opacity: 0.5; animation: logoGlow 3s infinite alternate;
}
@keyframes logoGlow { from { opacity: 0.3; } to { opacity: 0.7; } }

.header-title {
    font-size: 22px !important; font-weight: 800 !important;
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header-title span { color: #f97316; -webkit-text-fill-color: initial; margin-left: 2px; }
