/* 认证弹窗 - 独立于主内容，z-index 最高 */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.auth-modal {
    width: 420px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: jellyBounceIn 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.auth-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.98);
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.auth-header i {
    font-size: 20px;
}

.auth-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-hint {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}

.auth-input-wrap {
    position: relative;
}

#auth-password {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#auth-password::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#auth-password:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.auth-error {
    color: rgba(255, 107, 107, 0.95);
    font-size: 13px;
    text-align: center;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-error.visible {
    opacity: 1;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-submit:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.auth-submit:active {
    transform: scale(0.98);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .auth-modal {
        border-radius: 20px;
    }

    .auth-body {
        padding: 20px;
    }
}
